Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

What is “try and catch” in java

Answer Posted / reshma

TRY AND CATCH BLOCKS ARE USED FOR EXCEPTION HANDLING SOMETIMES PROGRAMMER GIVE WRONG INPUT THEN EXCEPTION OCCCUR,IN TRY BLOCK WE LOGIC OF PROGRAM IS WRITTEN WHERE EXCEPTION OCCURED THAT EXCEPTOINS ARE THROWN TO CATCH BLOCK.CATCH BLOCK CATCHES THE EXCEPTION THROWN BY TRY BLOCK.

Is This Answer Correct ?    7 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is public static void main?

1106


Explain what access modifiers can be used for methods?

1087


Are there structures in java?

971


How are observer and observable used in java programming?

1029


Can anonymous class have constructor?

1023


What is the use of beaninfo?

1046


Which containers use a flowlayout as their default layout in java programming?

1014


Is char a method in java?

1067


Explain the difference between intermediate and terminal operations in java8?

1115


Java is pass by value or pass by reference? Explain

991


Is it necessary for the port addresses to be unique? Explain with reason.

1018


Is 0 an irrational number?

1068


What is difference between module and function?

1184


Write a factorial program using recursion in java?

1024


What are conditionals and its types?

1146