Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-02-2007, 03:55 PM
Member
 
Join Date: Jul 2007
Posts: 41
paty is on a distinguished road
how to handle exceptions
hi guys
I want to learn more about java, I did an application an a friend of mine told me that it's very important to do exceptions (try and catch blocks)
I searched on Internet about it, but I don't understand very well what is it about and why do I have to use

can you guide me ?
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 08-02-2007, 04:51 PM
Member
 
Join Date: Aug 2007
Posts: 47
henry_78 is on a distinguished road
Hi paty,
There are 2 types of exceptions.
Unchecked exceptions : excptions that could happen at run time..u dont have to handle them because the java compilers dont check if u handled them or not (but u better do).
Checked Exceptions: Exceptions that u have to handle because the java compiler will give u a compile erroe if u dont do.
Exception can be hadled directley when they accoured(by try and catch blocke) or can be propagated (using throw clousle).
Its really a very bi argument..u better read a bit about it.
Bye.
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 08-05-2007, 05:17 AM
Member
 
Join Date: Jul 2007
Posts: 41
paty is on a distinguished road
very clear henry
thanks a lot
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


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

vB 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
[SOLVED] Handle own exception stevemcc New To Java 3 04-10-2008 05:55 AM
Better way to handle exceptions javaplus Advanced Java 2 01-16-2008 07:47 PM
How to handle socket Exception mayank0512 Networking 13 01-10-2008 01:53 PM
handle wrong input int/null Camden New To Java 1 12-16-2007 10:37 PM
Some form to read pixels in Java and to handle Another plate VGA? Albert Advanced Java 1 06-07-2007 06:29 AM


All times are GMT +3. The time now is 12:20 PM.


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