Re: ?? Will MIDletStateChangeException affects Midlet's performance ??
[email protected] Thu, 7 Aug 2008 09:06:54 PDT
| Newsgroups | gmane.comp.java.sun.kvm |
|---|---|
| Message-ID | <20141193.33841218125246567.JavaMail.tomcat@sdcst12.sjc.collab.net> |
Sorry, should have explained that a bit. Try/catch is what you put around the method call that throws the exception. The "exception notation" is what is placed on the method call to inform the Java compiler to require the try/catch be used. (It's my term not an industry standard)
So you have method "foo" that throws an exception:
public void foo( ) throws NullPointerException <<--- exception notation
{ /* do something here */ }
private void bar()
{ try { foo() } catch(NullPointerException npe) { /* handle exception */} }
Hope that clarifies my suggestion.
-Shawn
[Message sent by forum member 'sfitzjava' (sfitzjava)]
http://forums.java.net/jive/thread.jspa?messageID=292156
===========================================================================
To unsubscribe, send email to [email protected] and include in the body
of the message "signoff KVM-INTEREST". For general help, send email to
[email protected] and include in the body of the message "help".