This Question Is Answered:
 How to handle exceptions in java without using try, catch, log4j?
 19 Feb 2007 06:31
 Flag
 There are two ways to handle exceptions like one is wrapped around the required code in a try block be influenced by a catch block to catch the exceptions and second is the required exceptions in the throws clause of the techniques and let visit the technique can handle those exceptions. It is not the requirement of exception handling that each try block must be influenced by a catch block. It should be influenced by alternative of a catch block or a finally block.

It is not the matters that exceptions are likely to be thrown and must reveal in the throws clause of the technique. The Java programming technique gives two types of exception handling like checked and unchecked. The checked exception handling in declared in java.lang and the exception and all exception classes obtained in java.lang. The Runtime Exception and all exception classes are also obtained in java.lang.

Some programmers prefer to use unchecked exceptions because they want to use only independent variables capture like try, catch, log4j, or declared in the method of distinctive characteristic. However, in general this encourages situations where very low-level error messages are propagated up to high level areas of the code, without additional surrounding conditions information being added at each layer. This means that users are more likely to see the ambiguous and unhelpful messages.
Unrated

0 ratings
by   Virgo
  25 Jun 2007 21:56
 Flag

1000 words left

    


Blurtit Tools:  Email to a Friend    Bookmark this page
How do I increase the
buffer on my hard drive?
How Can I Check My Mother
Board 32 Bit Or 64 Bit?
How Do I Know Who The
Manufacturer Is For My
Motherboard? All I Am
Seeing In The Setup
Why Are You Using Public
Void Main[string Args[]?
What is a Java mobile
phone?
Is there a pointer
concept used in java?
Which is the best
programming language,
JAVA or .NET?
What are the advantage of
using Java language?
How to write coding for
sending mail in java?
What Is The Difference
Between Java Command Line
Arguments And C Command
Line Arguments...
My Blurtit
My Profile
My Questions
My Answers
Blurtit Features
Ask a Question
Answer a Question
Search an Answer
Categories
Tools
Link to Blurtit
Add Blurtit to Firefox
Search Engine
See Your Site Here
Link to Blurtit
RSS
Blurtit.com
About Us
Terms & Conditions
Privacy Policy
Contact Us
Advertise With Us
Help
International
 Chinese Site
 Japanese Site
To continue you need to be registered with us first.

I am already a Blurter, and need to login
I am not a Blurter yet, but would like to register