what difference between throw and throws in exception
handling.
Answer Posted / archana
throws is to handle exception by the system itself
whereas throw used by the user to handled the exception
| Is This Answer Correct ? | 5 Yes | 0 No |
Post New Answer View All Answers
How do you reverse sort a list in java?
How is string stored in java?
Differentiate between class and structure.
What is Java Reflection API? Why it’s so important to have?
What is the difference between JVM and JRE?
What is floating data type?
how to create multithreaded program? Explain different ways of using thread? When a thread is created and started, what is its initial state? : Java thread
Is vector thread safe in java?
Explain covariant method overriding in java.
What is the purpose of abstract class?
Name container classes in java programming?
Can static methods access instance variables in java?
What are the different http methods?
What are different exception types exceptions available in java ?
What are multiple inheritances? Is it supported by java?