What classes of exceptions, thrown by a throw statement?
Answers were Sorted based on User's Feedback
Answer / ravikiran
|Is This Answer Correct ?||2 Yes||0 No|
Syntax for throw is:
Here the throwableinstance must be an object of type
Throwable or sub-class of Throwable.Simple types such as
int or char as well as non-Throwable types such as String
or object can't be assigned to throw.
|Is This Answer Correct ?||1 Yes||0 No|
Can we force the garbage collection to run?
Is a method a function?
What is a layout manager?
How can a gui component handle its own events?
What is the difference between reader/writer and inputstream/output stream?
How do you get the length of a string in java?
What one should take care of, while serializing the object?
Explain the importance of join() method in thread class?
In Java list the methods that can be overridden?
Can we modify the throws clause of the superclass method while overriding it in the subclass?
How do you override a method in java?
can java object be locked down for exclusive use by a given thread? Or what happens when a thread cannot acquire a lock on an object? : Java thread