What is “try and catch” in java

Answer Posted / vijay kumar

These are the keywords which is used for Exception handling in java.The statements which assumes to raise an exception should kept in try block, and catch block contains the alternate code which should execute when exception occurs.

Is This Answer Correct ?    11 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can java list be null?

552


Is linked list a linear or non-linear data structure?

545


What do you understand by a Static Variable?

630


What is are packages?

587


What is the Difference between Final Class && Abstract Class?

617






Can we have any code between try and finally blocks?

562


Why is stringbuffer not immutable?

568


What are parameters in a method?

585


What is fail fast in java?

576


What is the hashcode () and equals () used for?

533


What will be the initial value of an object reference which is defined as an instance variable?

639


Where is stringbuffer stored?

547


Can a constructor be private and how are this() and super() method used with constructor?

529


What do you mean by pointer value and address?

579


What is this keyword in java?

563