In what ways you can handle exception ?

Answer Posted / ravikiran(aptech mumbai)

using try catch
using throws for delegation of exceptions
using throw to define an exception

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Define how does a try statement determine which catch clause should be used to handle an exception?

582


What are the two environment variables that must be set in order to run any java programs?

527


What are the basic concepts of OOPS in java?

566


4.1 Supply contracts (in the form of comments specifying pre- and post conditions) for the enqueue() method of the LinkedQueue class given in the Appendix. (2) 4.2 Let Thing be a class which is capable of cloning objects, and consider the code fragment: Thing thing1 = new Thing(); //(1) Thing thing2 = thing1; //(2) Thing thing3 = (Thing) thing1.clone(); //(3) Explain how the objects thing2 and thing3 differ from each other after execution of the statements. (

1409


What is integer valueof?

639






What does next mean in java?

534


What is the difference between arraylist and hashset in java?

516


What is a class component?

613


Should database connections be singleton?

568


Differentiate between stringbuffer and stringbuilder in java.

550


Define inheritance with reference to java.

583


What is the purpose of the return statement?

514


What is unicode full form?

551


What is e in java?

541


How do you declare a string variable?

512