When try and catch block is used ?

Answer Posted / ravikiran

try is used to enclose the code which is supposed to throw
an exception
catch is used to catch the exception which is raised with
in the try block

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the method to expand and collapse nodes in a jtree?

820


What is the default execution method in java?

871


hi am an engineering student and my next plan is for ms in either in us or australia i got my passport but i dont know anything bout visa can u give brief idea 1)How to get prepared for visa and 2)How to apply for top universities and 3)How to pay the fee and so on These all are basic questions plz give me a clear idea

1688


What is considered an anti pattern?

716


What is == mean?

759


Is java util list serializable?

723


Is it safe to install java on my computer?

787


What is a java string?

734


How many types of design patterns are there?

802


Explain the difference between hashmap and hashtable in java?

721


What are the three best choices for a development environment?

871


Explain when noclassdeffounderror will be raised ?

826


What is the implementation of destroy method in java. Is it native or java code?

738


What is the meaning of nullable?

781


Is java an ide?

732