what is difference between throw and throws in exception?
Answer Posted / velayutham
throw- means user defined exception. we want throw manually
throw the exception.
throws- means jvm going to take all exception.
Is This Answer Correct ? | 33 Yes | 10 No |
Post New Answer View All Answers
What is internal variable?
What is immutable class in java?
What does void * mean?
Is java util regex pattern thread safe?
Is list ordered in java?
What are nested classes in java?
Explain the difference between abstract class and interface in java?
Can a set contain duplicates?
What is the purpose of static methods and variables?
Write a program to solve producer consumer problem in java?
How do you sort objects in java?
What is an arraylist in java?
How you can force the garbage collection?
What will happen when using pass by reference in java?
Difference between Linked list and Queue?