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

Explain the features of java?

1066


Which package is imported by default?

1130


What is the difference between arraylist and hashset in java?

1232


In a container there are 5 components. I want to display all the component names, how will you do that?

2245


What are the four versions of java?

1064


What is a parameter in matrices?

1104


Explain how to force the garbage collection in java.

1019


How big is a pointer?

1070


Is java a security risk?

1086


How can we make a class singleton?

1124


Explain the difference between call by refrence and call by value?

1070


What is lambda expression in java?

1104


Which is bigger float or double java?

1022


What is the main advantage of passing argument by reference?

1040


Can we override constructors in java?

1207