This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Java" Watch "Java" New topic
Author

Java

Paul Arockiaraj
Greenhorn

Joined: Feb 17, 2006
Posts: 7
Dear Friends,

What is Runtime Exception? how do you handle that.

any one give with example program.

thks in adv.
Henry Wong
author
Sheriff

Joined: Sep 28, 2004
Posts: 18498
    
  40

Originally posted by Paul Arockiaraj:
Dear Friends,

What is Runtime Exception? how do you handle that.

any one give with example program.

thks in adv.


A Runtime exception is merely an exception that is, or is derived from, a java.lang.RuntimeException class. To use, it is no different from any other exception. To compiler, it is unchecked -- meaning that it won't require you to declare your class as throwing such an exception, nor require you to handle it.

Henry


Books: Java Threads, 3rd Edition, Jini in a Nutshell, and Java Gems (contributor)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Java