Java - Online Test - Throws - javasearch.buggybread.com
OCJP / SCJP
New in Java 8
Java 8 Lambda
Java 8 java.time
Search Java Test Questions
223 test questions in repository.
Java - Test Questions on 'throws' - 3 questions found
In Case a method is declared to throw an exception , We can only use a call to that method if ...
We use the call within try block and catch the exception
We declare that the method is expected to throw the exception using throws
Both 1 and 2
Either 1 or 2
Which of the following is true ?
throw and throws are used to throw an exception
throw is used to throw an exception whereas throws is a declaration that the method can throw the exception
throws is used to throw an exception whereas throw is a declaration that the method can throw the exception
throw and throws are used to declare that an exception can be thrown by the method
throws is a declaration that the ..... is expected to throw an exception ?
comments powered by Disqus.
comments powered by