What is “try and catch” in java

Answer Posted / srikanth

if u are devloping code then some where in line no we may
get exception
in order to catch that exception we use try and catch

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how can you take care of mutual exclusion using java threads? : Java thread

615


When is update method called?

672


What are the differences between string and stringbuffer?

593


What is string builder?

474


Can we override static methods in java?

591






What exceptions occur during serialization?

612


What are the advantages of encapsulation in java?

556


What is map in java?

522


State some situations where exceptions may arise in java?

629


What is class and its types?

546


How we can run a jar file through command prompt in java?

526


What are the differences between path and classpath variables?

504


What are peerless components?

626


Why main method is called first in java?

547


Explain the difference between the public, private, final, protected, and default modifiers?

555