what is difference between throw and throws in exception?
Answer Posted / savita patil
throw is used for to through exception system explicitly,and
throws is u sed for to throws exception means throws
ioexception and servletexception and etc.........
| Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
Can memory leak in java?
What is difference between printf and scanf?
What is use of map in java?
What is java util list?
If we don’t want some of the fields not to serialize how to do that?
Explain the difference between abstract class and interface in java?
Is array a class?
What are void methods?
What are the advantages of packages in java?
What is the difference between superclass and subclass?
Differentiate between stringbuffer and stringbuilder in java.
What are the differences between string and stringbuffer?
Does java support function overloading, pointers, structures, unions or linked lists?
What is difference between static variable and global variable?
What will be the default values of all the elements of an array defined as an instance variable?