what is difference between throw and throws in exception?
Answer Posted / neema
"throw" is used to handle user-defined exception.
JVM handles the exceptions which are specified by "throws"
Is This Answer Correct ? | 261 Yes | 50 No |
Post New Answer View All Answers
What is nullpointerexception?
What do you understand by Header linked List?
What is the use of System class?
What is use of set in java?
Why does java does not support multiple inheritance? Explain
Which arithmetic operations can result in the throwing of an arithmeticexception?
What is an immutable object? How do you create one in java?
Is jdk required on each machine to run a java program?
What is the common usage of serialization? What exceptions occur during serialization?
When a byte datatype is used?
Difference between operator overloading and function overloading
Why generics are used in java?
What is mvc in java?
Can a private method of a superclass be declared within a subclass?
How does predicate work in java?