Easy Tutorial
For Competitive Exams

Java Programming Exception Handling

1577.Which of the following does not deal with exceptions?
throws
throw
finalize
finally
1578.URL throws an exception called
IllegalURLException
URLException
MalformedHostException
MalformedURLException
1579.Event handling is done by objects which
Contain code for running an applet
Contain code for creating a window
Contain code for responding to an event generated by a logical input device
Contain code for responding to program generated exceptions
1580.Which class is base class for all exceptions?
String
Error
Throwable
RuntimeException
1581.Java’s exception handling mechanism is meant to handle
only compile time errors
only syntax errors
only runtime errors
both runtime and compile time errors
1582.When the JVM runs out of memory, which exception will be thrown?
MemoryBoundException
OutOfMemoryError
OutOfRangeException
NullReferenceException
1583.In Java programming environment, the throw keyword is used
to generate exception programmatically
to throw exception object
to catch exception object
none of the above
1584.Which exception is thrown by read() method ?
Exception
FileNotFoundException
ReadException
IOException
1585.Attempting to access a character that is outside the bounds of a StringBuffer results in a
ArrayIndexOutOfBoundsException
StringOverFlowException
StringException
StringIndexOutOfBoundsException
1586.Exception and Error are immediate subclasses of a class called
Object
Throwable
AWT
Panel
1587.When does Exceptions in Java arises in code sequence?
Run Time
Compilation Time
Can Occur Any Time
None of the mentioned
1588.Which of these keywords is not a part of exception handling?
try
finally
thrown
catch
1589.Which of these keywords must be used to monitor for exceptions?
try
finally
throw
catch
1590.Which of these keywords must be used to handle the exception thrown by try block in some rational manner?
try
finally
throw
catch
1591.Which of these keywords is used to manually throw an exception?
try
finally
throw
catch
1592.Which of these is a super class of all exceptional type classes?
String
RuntimeExceptions
Throwable
Cachable
1593.Which of these class is related to all the exceptions that can be caught by using catch?
Error
Exception
RuntimeExecption
All of the mentioned
1594.Which of these class is related to all the exceptions that cannot be caught?
Error
Exception
RuntimeExecption
All of the mentioned
1595.Which of these handles the exception when no catch is used?
Default handler
finally
throw handler
Java run time system
1596.Which of these keywords is used to manually throw an exception?
try
finally
throw
catch
Share with Friends