Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Recursion in j2me

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


Is there any limitation for recursion (recursve function) in j2me?

If yes what kind of limitation with recursion.

Thanks
Vishwas
 
Eduardo Marques
Ranch Hand
Posts: 231
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Only stack size, which may be specially small in J2ME devices.
So be sure that you recursion does not nest too deeply.

There is no other limit on recursion.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic