Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Exception Handling in J2ME

 
vishwas bhatt
Ranch Hand
Posts: 129
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Folks,

Is this ture that we should avoid Exception Handling in J2ME applications.
they slow down the performance of your application.

please help in this...and give me some refrence article if possible.


waiting for reply.
Thanks
Vishwas
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well that depends, do you want your application to completely crash when an exception occurs, or do you want to handle them and let the application continue.

Mark
 
vishwas bhatt
Ranch Hand
Posts: 129
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Mark,

Thanks for you reply. Obviously we want to countinue our applicatin when exception occur. But handling of exception affect on the performance or heap size in case of j2me.

Thanks
Vishwas
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, the only way you can have the program to continue is to catch the exceptions, so whether there is a performance hit or not doesn't matter. Besides, I have never seen any performance hit, or information on there being one anywhere. So then my next question is how and why would it even cause a performance hit? Where did you see that information?

Mark
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic