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 the this keyword?

1092


what happens when a thread cannot acquire a lock on an object? : Java thread

1105


What is a nullable field?

1091


What is java virtual machine and how it is considered in context of java’s platform independent feature?

1219


Is arraylist sorted in java?

1063


List some important features of java 10 release?

1164


What is the difference between == and === javascript?

1250


Explain importance of throws keyword in java?

1038


Is main is a keyword?

1056


How to perform selection sort in java?

1045


How do you use find and replace?

1007


Why doesn't the java library use a randomized version of quicksort?

1034


State differences between C and Java?

1264


What are heterogeneous objects?

1085


What is a instance variable in java?

1091