Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Ayden Smith   on Jun 29 In Java Category.

  
Question Answered By: Adaulfo Fischer   on Jun 29

Java has the concept of checked exceptions  and unchecked exceptions.
Checked exceptions (those extending from Exception) require that they
are either handled at the point they occur or that the method in which
they occur is declared with the throws  clause. Unchecked exceptions
(those which extend from RuntimeException) do not need to be declared in
methods and will propagate up the call stack (this is how Python
works). Searching for "exceptions in java" will give you a lot of
reading material for learning more about java  exceptions.

Share: 

 
 
Didn't find what you were looking for? Find more on why do I need exception here? Or get search suggestion and latest updates.


Tagged: