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 the difference between stream and buffer?
What is immutable in java?
What ide should I use for java?
What is a line break example?
What are different access specifiers in java?
How does multithreading take place on a computer with a single cpu?
What is oop principle in java?
What is ellipsis in java?
What are thread priorities and importance of thread priorities in java?
Which is faster string or stringbuilder?
Why java doesn’t support multiple inheritances?
What is the difference between a checked and an unchecked exception?
Explain about collection interface in java?
Can we nested try statements in java?
Can we have 2 main methods in java class?