![]() Related Questions Latest Answer : throw is used to explicitly thorw some exception throws is used to tell the compiler the this method might through mentioned type of exception. ... Latest Answer : If a method is not Handling a checked exception and wants the exception to be propagated to the caller of the method then that exception is declared in the Throws clause of its method prototype.Regards,Chandana. ... Which of the following is true?1) wait(),notify(),notifyall() are defined as final & can be called only from with in a synchronized method2) Among wait(),notify(),notifyall() the wait() method only throws IOException3) wait(),notify(),notifyall() & sleep() are methods of object class A) 1B) 2 & 3C) 1 & 2D) 1 2 & 3 A) Throws Latest Answer : Throw is used to pass an exception up to the method that called itThrows is used to indicate that method pass exception to the method that the method called ... Read Answers (3) | Asked by : parth Latest Answer : throw enables ur program to throw an exception explicitily.general form is throw abcabc is an object of type Throwable or subclass of Throwable.throws : if a method is capable of causing an exception that it doesnot ... Read Answers (2) | Asked by : Mahendran 1.throw Vs. throws clause?2.Use of EJBs?3.Design Patterns avail in Java?4.Different ways of achieving Exceptions in Java?5.Can we handle Run Time Exceptions?6.How to overcome OutOfMemoryError?7.CompileTime Latest Answer : 4.Whats the use of Marker Interfaces in java eventhough there r no methods in the Marker interfaces?Answer : The marker methods specifies the functionality of a class depending upon the need. For example if a method needs to be serialised ... View Question | Asked by : Manish ServletException,IOException. what is the difference between throw and throws Latest Answer : if user program explicitly wants to throw an exception(inbuilt or userdefined) then throw keyword is used. if the user program wants to throw an exception in a particular condition then throw keyword is used metho(){ ........................... ...
Sponsored Links
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||