Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Unreported Exception

807591Feb 29 2008 — edited Feb 29 2008
Hai All

I am having one doubt regarding Exception in java. When I call some of the System defined function in java like thread.sleep(500) , it showing error like "Unreported Exception java.lang.Interrupted Exception;must be caught or declared to be thrown" really i do not know what does mean.

I know only one thing whenever i want to use Exception Handling concept in my program , i have to use try and catch statement for handling exception.

can you explain me clearly .

Thanks
Selvakumar
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 28 2008
Added on Feb 29 2008
2 comments
401 views