• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

catch and try

 
T sandya
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can we write catch and try blocks inside catch block.
 
Ajay Singh
Ranch Hand
Posts: 182
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sure, its allowed
 
Jesper de Jong
Java Cowboy
Saloon Keeper
Posts: 15441
41
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For simple questions like this, it's best to try it out yourself. That way you not only get an answer to your question, but you also learn more about how Java works. You learn a lot by experimenting, trying things out.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic