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 is stack class in java?
What is the difference between hashmap and hashtable? What is an interface?
explain the concept of virtual method invocation in polymorphism in detail?
How many digits can a float hold?
Can we have any other return type than void for main method?
why not override thread to make a runnable? : Java thread
Garbage collection in java?
How static variable work in java?
What is regex in java?
What is the difference between abstract class and interface1? What is an interface?
Is object a data type in java?
What is array list in java?
I want to store more than 10 objects in a remote server? Which methodology will follow?
What is keyword and identifier?
What is an eror in java?