what difference between throw and throws in exception
handling.
Answer Posted / narayana reddy
throws indicates what type of exception is thrown by
a particular function, where as throw is used to through
user defined exceptions
| Is This Answer Correct ? | 14 Yes | 0 No |
Post New Answer View All Answers
What is the use of optional ?
why not override thread to make a runnable? : Java thread
How do you access command-line arguments within the code?
How do you implement singleton class?
Can we have any code between try and catch blocks?
What about interrupt() method of thread class ?
What does string [] args mean?
java program with complete 4 oops concepts implemented example
make a method which any number and any type of argument and print sum of that arguments.....
Define "Access specifiers" in java.
How will you compute size of a structure?
How does callback work in java?
What is a variable analysis?
Explain the private protected method modifier?
What are untrusted applets?