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

Is class forname reflection?

520


What are the Class Libraries ?

600


Explain restrictions for using anonymous inner classes?

589


What is method in java ?

631


What is the difference between preemptive scheduling and time slicing in java programming?

541






Can a variable be local and static at the same time?

548


What 5 doubled?

514


Are floats faster than doubles?

568


What is a flag and how does it work?

515


What is a key in java?

505


What are the java ide’s?

577


What is the longest unicode character?

695


How to compare strings in java?

508


Define a package.

573


What is a instance variable?

586