Win a copy of Reactive Streams in Java: Concurrency with RxJava, Reactor, and Akka Streams this week in the Reactive Progamming forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Ganesh Patekar

Exceptions

 
Ranch Hand
Posts: 130
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
In one of the postings by maha anna in reply to Mr. Divakars
postings on March 9, i saw this line..
//
Non-RuntimeExceptions must always be caught or declared as thrown by the method which raises them. //YES (also called as CHECKED EXCEPTIONS)
//
My doubt is Non-RuntimeExceptions can also be ErrorException
which is not a RunTimeException and this Exception of Error
is a unchecked exception.
Is it right to say that all non-runtime exceptions are checked
exceptions and they must always be caught or declared in the
throws clause.
Your help in this regards is appreciated.

------------------
Regards,
V. Kishan Kumar
 
Sheriff
Posts: 5782
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Non-RuntimeExceptions" here excludes subclasses of Error and RuntimeExcpetion.
Ajith
 
This looks like a job for .... legal tender! It says so right in this tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!