Forums.Sureshkumar.net : A Perfect Place to Share Knowledge         Blogs     Games    Magazines    

"Sharing knowledge does not lessen your store, often it gets you more. Sharing plays a key role in relationships and bonding, happens in small steps and is assisted through community membership."

Go Back   SURESHKUMAR.NET FORUMS > TECHNICAL DISCUSSIONS > JAVA Technologies
Register FAQ Members List Calendar Games Blogs Search Today's Posts Mark Forums Read

   

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old 07-02-07, 01:57 PM   #1 (permalink)
Senior Member
 
Join Date: Aug 2006
Age: 28
Posts: 275
Thanks: 0
Thanked 5 Times in 5 Posts
Thanks: 0
Thanked 5 Times in 5 Posts
Rep Power: 5 radhika743 is on a distinguished road
exception once you have caught?

Q.) What do you do with an exception once you have caught it?
radhika743 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 07-02-07, 03:01 PM   #2 (permalink)
Member
 
Join Date: Jul 2006
Posts: 67
Thanks: 11
Thanked 43 Times in 29 Posts
Thanks: 11
Thanked 43 Times in 29 Posts
Rep Power: 8 surekhav is just really nice surekhav is just really nice surekhav is just really nice surekhav is just really nice surekhav is just really nice surekhav is just really nice
Re: exception once you have caught?

Hi,
If we are not catching the exception then we can't identify the reason of program failure..
If we catch it we ll get the reason of program failure through the catch block
try
{
.....
.....
.....
}

catch
{
e.printStackTrace();//Prints the exceptions
}

which tells us about the exception and its now easy for us to alter the program so that it works fine


Friends correct me if i'm wrong
__________________
Regards
Surekha

Last edited by surekhav; 07-02-07 at 03:06 PM.
surekhav is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
The Following 2 Users Say Thank You to surekhav For This Useful Post:
suganyak (07-02-07), t_mohan (09-02-07)
Old 14-02-07, 03:30 PM   #3 (permalink)
Banned
 
Join Date: Oct 2006
Location: India
Age: 25
Posts: 33
Thanks: 1
Thanked 4 Times in 4 Posts
Thanks: 1
Thanked 4 Times in 4 Posts
Rep Power: 0 hemanthjava is on a distinguished road
Re: exception once you have caught?

Once you have got an exception you can display a JOptionPane with a suitable message stating what exception has occured based on your business logic. Its basically useful when handling user defined exceptions. The general exceptions are simply handled.
hemanthjava is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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 On
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
what are exceptions? mounika ORACLE , SQL SERVER , SYBASE & Others 13 01-03-07 04:49 PM
What will happen to the Exception object after exception handling preethisingh Java Interview / Technical Questions 0 23-01-07 01:25 PM
Frds... Be very careful when u get caught with dust Spoorthi PICS ZONE 3 28-10-06 09:45 AM
java notes naga JAVA Technologies 5 22-09-06 10:30 PM
Java Contest-30 keerthi JAVA Technologies 3 01-06-06 11:31 AM


All times are GMT +6.5. The time now is 01:56 PM.





Search Engine Optimization by vBSEO 3.1.0