Java Interview Questions on Exception - 14
Question: 2
(A) -100
(B) Compilation Error
(C) Exception since catch is missing
(D) Exception since finally is missing
Forum
Level: Beginner Category: exceptions
[Posted by: Admin | Chicago, USA]
Question: 3
(A) Yes
(B) No It is compilation error
Forum
Level: Beginner Category: exceptions
[Posted by: Admin | Chicago, USA]
Question: 4
(A) -100
(B) null
(C) -100null
(D) null-100
Forum
Level: Practitioner Category: exceptions
[Posted by: Admin | Chicago, USA]
Question: 5
(A) -100null
(B) -100
(C) null
(D) Compilation Error - unreachable statement at line 8
Forum
Level: Practitioner Category: exceptions
[Posted by: Admin | Chicago, USA]
Question: 6
(A) Exception
(B) Throwable
(C) JavaBase
(D) Error
Forum
Level: Expert Category: exceptions
[Posted by: Admin | Chicago, USA]
Question: 7
(A) NullPointerException
(B) NumberFormatException
(C) ClassCastException
(D) ParseException
Forum
Level: Beginner Category: exceptions
[Posted by: Admin | Chicago, USA]
Question: 8
(A) NumberFormatException
(B) IllegalArgumentException
(C) RuntimeException
(D) ParseException
Forum
Level: Expert Category: exceptions
[Posted by: Admin | Chicago, USA]
Question: 10
(A) throws
(B) finally
(C) catch
(D) throw
Forum
Level: Beginner Category: exceptions
[Posted by: Arvind | Navi Mumbai India]
Question: 11
(A) finally
(B) catch
(C) finally & catch
(D) none of the mentioned
Forum
Level: Beginner Category: exceptions
[Posted by: Arvind | Navi Mumbai India]
Question: 12
(A) java.io
(B) java.util
(C) java.lang
(D) java.net
Forum
Level: Beginner Category: exceptions
[Posted by: Arvind | Navi Mumbai India]
Question: 13
(A) 5 10
(B) 5 10 CppBuzz1
(C) 5 10 CppBuzz2
(D) Compilation Error
Forum
Level: Expert Category: exceptions
[Posted by: Admin | Chicago, USA]
Browse Java 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 Multithreading OtherCppBuzz Forum☆
Now you can ask programming questions on our forum [continue..]