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
Write an algorithm program in java for the following question.. 1) S is a set of integers.X is an integer obtained by sum of two digits in S. Write logic for whether or not the X is from the S. The time of algorithm should not exceed o(n logn).
Explain about the main() method in java?
What is difference between module and function?
What is token in java?
Can a class be private or protected in java?
What is super in java?
What are the advantages of java?
Explain oops concepts in detail?
What is serialversionuid?
Enlist few advantages of inheritance?
What is a stringbuffer?
How would you use Bubble Sort to sort the number of elements?
How many types of memory areas are allocated by jvm?
What does nullpointerexception mean?
Differences between C and Java?