Get the FREE certificate on C, C++, Java, Python, Perl, PHP, SQL, Linux & Javascript!  

CppBuzz.com
  
Home C C++ Java Python Perl PHP Spring SQL Javascript Linux Forum

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

Java Interview Questions on Exception - 13 Questions


Question: 1

(A) Yes
(B) No

Beginner exceptions[Posted by: Admin | Chicago, USA]



Question: 2

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

Beginner exceptions[Posted by: Admin | Chicago, USA]



Question: 3

(A) Yes
(B) No It is compilation error

Beginner exceptions[Posted by: Admin | Chicago, USA]



Question: 4

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

Practitioner exceptions[Posted by: Admin | Chicago, USA]



Question: 5

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

Practitioner exceptions[Posted by: Admin | Chicago, USA]



Question: 6

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

Expert exceptions[Posted by: Admin | Chicago, USA]



Question: 7

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

Beginner exceptions[Posted by: Admin | Chicago, USA]



Question: 8

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

Expert exceptions[Posted by: Admin | Chicago, USA]



Question: 9

Beginner exceptions[Posted by: Admin | Chicago, USA]



Question: 10

(A) throws
(B) finally
(C) catch
(D) throw

Beginner exceptions[Posted by: Arvind | Navi Mumbai India]



Question: 11

(A) finally
(B) catch
(C) finally & catch
(D) none of the mentioned

Beginner exceptions[Posted by: Arvind | Navi Mumbai India]



Question: 12

(A) java.io
(B) java.util
(C) java.lang
(D) java.net

Beginner exceptions[Posted by: Arvind | Navi Mumbai India]



Question: 13

(A) 5 10
(B) 5 10 CppBuzz1
(C) 5 10 CppBuzz2
(D) Compilation Error

Expert exceptions[Posted by: Admin | 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