Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-18-2007, 07:59 PM
Java Tip's Avatar
Moderator
 
Join Date: Nov 2007
Posts: 1,691
Rep Power: 5
Java Tip will become famous soon enoughJava Tip will become famous soon enough
Default Checked Exception
Checked Exceptions are to be handled by the programmer otherwise the compiler will show errors (compile-time error). These exceptions do not extend RunTimeException class.

Code:
try{
FileOutputStream out = new FileOutputStream("myfile.txt");
}catch(Exception ex)
{ex.printStackTrace();}

Last edited by Java Tip; 11-18-2007 at 09:09 PM.
Bookmark Post in Technorati
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Need help on Exception Deon New To Java 7 02-11-2010 06:46 PM
Where does the exception go? aytidaalkuhs New To Java 3 04-07-2008 03:24 PM
exception Oktam New To Java 2 03-23-2008 08:01 PM
Trouble with factory method - unhandled exception type Exception desmond5 New To Java 1 03-08-2008 07:41 PM
Exception Camden New To Java 2 11-27-2007 12:50 AM


All times are GMT +2. The time now is 12:08 AM.



VBulletin, Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2009, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org