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
Is main a keyword in java?
Is there any limitation of using inheritance?
What is java algorithm?
Why do we need strings in java?
Is c better than java?
How does linkedhashmap work in java?
Explain about the security aspect of java?
What are the main concepts of oops in java?
What are the various access specifiers in java?
What is the difference between reader/writer and inputstream/output stream?
What is a lock or purpose of locks in java?
Can we use string in switch case in java?
Explain the difference between extends thread vs implements runnable in java?
Explain when we should make an instance variable private.
Is null an object java?