Interview Questions on C C++

Home  |  About Us  |  Contact
View Questions Contribute Training Misc..

You are here : Home » Java » Java Interview Questions on Exception

Java Interview Questions on Exception - 9 Questions


Question: 1

A. Yes
(B) No

[Posted by: Admin | Location: Chicago, USA]



Question: 2

A. -100
(B) Compilation Error
(C) Exception since catch is missing
(D) Exception since finally is missing

[Posted by: Admin | Location: Chicago, USA]



Question: 3

A. Yes
(B) No It is compilation error

[Posted by: Admin | Location: Chicago, USA]



Question: 4

A. -100
(B) null
(C) -100null
(D) null-100

[Posted by: Admin | Location: Chicago, USA]



Question: 5

A. -100null
(B) -100
(C) null
(D) Compilation Error - unreachable statement at line 8

[Posted by: Admin | Location: Chicago, USA]



Question: 6

A. Exception
(B) Throwable
(C) JavaBase
(D) Error

[Posted by: Admin | Location: Chicago, USA]



Question: 7

A. NullPointerException
(B) NumberFormatException
(C) ClassCastException
(D) ParseException

[Posted by: Admin | Location: Chicago, USA]



Question: 8

A. NumberFormatException
(B) IllegalArgumentException
(C) RuntimeException
(D) ParseException

[Posted by: Admin | Location: Chicago, USA]



Question: 9

A.
(B)
(C)
(D)

[Posted by: Admin | Location: Chicago, USA]


[Contribute to this Website]


Java Objective Questions By Different Categories:-
Datatype | Variables | Operators | Decision Making | Loops | Methods | Reference Variables | Arrays | Classes and Objects | Abstract Class | Singleton Class | Modifiers | Inheritance | Overriding | Polymorphism | Abstraction | Encapsulation | Files and I/O | TypeCasting | Packages | Exceptions | Collections Framework | Numbers Class | Date & Time | Regular Expressions | Data Structures | Interfaces | Serialization | Multithreading | Networking | Sending Email | Applet Basics | Other