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 meant by HQL?
What are 5 boolean operators?
How do you access command-line arguments within the code?
When does a class need a virtual destructor?
Explain about exception propagation?
What is better - 'bit-shift a value' or 'multiply by 2'?
What is the difference between the boolean & operator and the && operator in java programming?
What are different types of states exist for a thread?
How to use arraylist in java netbeans?
Which method you will use to create a new file to store some log data. Each time a new log entry is necessary, write string to the file in java ?
Can you use this() and super() both in a constructor?
How can the checkbox class be used to create a radio button?
Why Java doesn’t support multiple inheritance?
What is a line separator in java?
Can we have multiple classes in a single file?