what difference between throw and throws in exception
handling.
Answer Posted / narayana reddy
throws indicates what type of exception is thrown by
a particular function, where as throw is used to through
user defined exceptions
| Is This Answer Correct ? | 14 Yes | 0 No |
Post New Answer View All Answers
What is the difference between static binding and dynamic binding?
Under what conditions is an object’s finalize() method invoked by the garbage collector?
Detail discussions on JVM, memory management and garbage collector.
What are void methods?
What is compareto?
What is balanced tree in java?
How are the elements of a gridbaglayout organized?
How many types of exception can occur in a java program?
Is arraylist dynamic in java?
What is entry in java?
What do you mean by local variable and instance variable?
What are the different approaches to implement a function to generate a random number?
Is object a data type?
How many bytes is a unicode character?
What is the public method modifier?