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
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
1587.When does Exceptions in Java arises in code sequence?
Run Time
Compilation Time
Can Occur Any Time
None of the mentioned
1590.Which of these keywords must be used to handle the exception thrown by try block in some rational manner?
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
- Collection
- ArrayList
- LinkedList
- Vector
- HashSet
- Conditional Statements
- Classes and Objects
- Inheritance
- Packages
- Exception Handling
- Threads
- TreeSet
- LinkedHashSet
- HashMap
- TreeMap
- LinkedHashMap
- HashTable
- Iterator and ListIterator
- String
- Scanner
- Array Small Programs
- Introduction
- Variables
- DataTypes
- Operators
- Conditional Statements
- Loop
- Arrays
- Object Oriented Programming
- Classes and Objects
- Access Modifiers
- Methods
- Abstraction
- Constructor
- Packages
- StringBuffer
- Inheritance
- StringBuilder
- Encapsulation
- Java IO
- Polymorphism
- Interface
- Types Of Variables
- Static Keyword
- Final Keyword
- Super Keyword
- This Keyword
- Exception Handling