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
How do you reverse a string in java without using string buffer?
What is a two-pass assembler?
What is the implementation of destroy method in java. Is it native or java code?
How do you write a conditional statement?
Explain covariant method overriding in java.
What is remote method invocation (rmi)?
What is final keyword?
What is the basic difference between string and stringbuffer object?
Why java is platform independent? Explain.
What is the purpose of a parameter?
How many types of keywords are there?
What is a ternary operator in java?
Is Constructor possible in abstract class in java ?
what is method reference in java 8?
Explain inheritance in java?