what difference between throw and throws in exception
handling.
Answer Posted / dani
You can declare multiple exception thrown by method in
throws keyword by separating them in common
e.g. throws IOException, ArrayIndexBoundException etc,
while you can only throw one instance of exception using
throw keyword e.g. throw new IOException("not able to open
connection").
Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What are the 3 types of control structures?
What is a numeric format?
Describe string intern() methodology
Explain the JDB in depth & command line.
What is difference in between java class and bean?
What is 32 bit float?
What is a double vs float?
Can we instantiate interface in java?
What are keyboard events?
What is scope & storage allocation of global and extern variables? Explain with an example
What is finalize() function in java?
What is the use of a conditional inclusion statement in Java ?
what is thread? What are the high-level thread states? Or what are the states associated in the thread? : Java thread
What is the use of list in java?
What is the ==?