File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

throws Exception

 
Cham Wick
Greenhorn
Posts: 8
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
According to above code why don't we need try...catch block to execute "a.start();"
I'm new to java and as far as I know it needs a try...catch block to execute a method code if it thorws an Exception


[HENRY: added code tags]
 
Henry Wong
author
Marshal
Pie
Posts: 20835
75
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Cham Wick wrote:According to above code why don't we need try...catch block to execute "a.start();"
I'm new to java and as far as I know it needs a try...catch block to execute a method code if it thorws an Exception



ArithmeticException exceptions are unchecked exceptions.

Henry
 
Cham Wick
Greenhorn
Posts: 8
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic