what is difference between throw and throws in exception?
Answer Posted / srinath
throws keyword is used 2 delegate the responsibility of
exception handling 2 caller method where as throw keyword
used 2 hand over the creted customised excetion object 2
jvm 2 handle the excepion.
Is This Answer Correct ? | 33 Yes | 7 No |
Post New Answer View All Answers
Can a static member function access member variable of an object?
What will happen if a thrown exception is not handled?
List types of storage classes in java?
Why strings in java are called as immutable?
Write a program to search a number in the given list of numbers.
What does the “final” keyword mean in front of a variable? A method? A class?
What is anagram in java?
How do you clear a list in java?
Write a program in java to establish a connection between client and server?
What is the difference between preemptive scheduling and time slicing?
What is difference between ++ I and I ++ in java?
Can we override the static methods?
What is meant by oops concept in java?
What is the null?
What is number data type in java?