Home C C++ Java Python Perl PHP SQL JavaScript Linux Selenium QT Online Test

Home » Java » Java Interview Questions on Exception

Java Interview Questions on Exception - 14


Question: 1

(A) Yes
(B) No

Level: Beginner Category of MCQ: exceptions



Question: 2

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

Level: Beginner Category of MCQ: exceptions



Question: 3

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

Level: Beginner Category of MCQ: exceptions



Question: 4

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

Level: Practitioner Category of MCQ: exceptions



Question: 5

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

Level: Practitioner Category of MCQ: exceptions



Question: 6

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

Level: Expert Category of MCQ: exceptions



Question: 7

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

Level: Beginner Category of MCQ: exceptions



Question: 8

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

Level: Expert Category of MCQ: exceptions



Question: 9

Level: Beginner Category of MCQ: exceptions



Question: 10

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

Level: Beginner Category of MCQ: exceptions



Question: 11

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

Level: Beginner Category of MCQ: exceptions



Question: 12

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

Level: Beginner Category of MCQ: exceptions



Question: 13

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

Level: Expert Category of MCQ: exceptions



Question: 14

(A)
(B)

Level: Beginner Category of MCQ: exceptions



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 Other