what is difference between throw and throws in exception?
Answer Posted / bhavannarayana ch
To handover an Exception object to the JVM Programatically by using the "throw"
To delegate the responsibility of Exception handling to the caller by using "throws"
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What are variable names?
Implement two stacks using a single array.
What is hashtable and explain features of hashtable?
What about static nested classes in java?
When the constructor of a class is invoked?
How do you declare a string variable?
Is java 11 paid version?
what is the constructor and how many types of constructors are used in java?
What are the restrictions that are applied to the java static methods?
What is meant by overloading?
What is a void method java?
what are the states associated in the thread? : Java thread
Name the components that are termed to be Heavy-weight component but available in Light-weight components?
What is the difference between integer parseint and integer valueof?
What is a variable declaration?