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

Home » Java » Java Interview Questions on Methods

Java Interview Questions on Methods - 25


Question: 1

(A) True
(B) False

Level: Beginner Category of MCQ: methods



Question: 2

(A) True
(B) False

Level: Beginner Category of MCQ: methods



Question: 3

(A) 00
(B) 0-1
(C) 0-2
(D) -2

Level: Beginner Category of MCQ: methods



Question: 4

(A) -2
(B) 0-1
(C) 0-2
(D) error: non-static method can't be called

Level: Practitioner Category of MCQ: methods



Question: 5

(A) Compilation Error
(B) 3
(C) 5
(D) 6

Level: Practitioner Category of MCQ: methods



Question: 6

(A) 63321
(B) 36
(C) 33
(D) 12336

Level: Expert Category of MCQ: methods



Question: 7

(A) 32136
(B) 33126
(C) 12336
(D) 63321

Level: Beginner Category of MCQ: methods



Question: 8

(A) 123456789
(B) 12345678
(C) 122
(D) None of the above

Level: Expert Category of MCQ: methods



Question: 9

(A) 12
(B) 01
(C) 11
(D) 10

Level: Beginner Category of MCQ: methods



Question: 10

(A) Yes
(B) No

Level: Beginner Category of MCQ: methods



Question: 11

(A) Compilation Error
(B) Exception
(C) - -
(D) --

Level: Practitioner Category of MCQ: methods



Question: 12

(A) -null-
(B) - -
(C) --
(D) java.lang.NullPointerException

Level: Expert Category of MCQ: methods



Question: 13

(A) Compilation Error
(B) Exception
(C) --
(D) - -

Level: Expert Category of MCQ: methods



Question: 14

(A) 3
(B) 5
(C) 18
(D) 16

Level: Practitioner Category of MCQ: methods



Question: 15

(A) 77
(B) 78
(C) 79
(D) 710

Level: Expert Category of MCQ: methods



Question: 16

(A) 7
(B) 8
(C) 9
(D) 10

Level: Expert Category of MCQ: methods



Question: 17

(A) 7
(B) 8
(C) 9
(D) 10

Level: Practitioner Category of MCQ: methods



Question: 18

(A) 555
(B) 544
(C) 554
(D) 543

Level: Practitioner Category of MCQ: methods



Question: 19

(A) null
(B) Nothing is printed
(C) Compilation Error
(D) ArrayIndexOutOfBoundsException

Level: Practitioner Category of MCQ: methods



Question: 20

(A) AT&T Lab65
(B) AT&T Lab 65
(C) AT&T Lab
(D) Compilation Error

Level: Practitioner Category of MCQ: methods



Question: 21

(A) 6565
(B) 65
(C) "65"
(D) None of the above

Level: Practitioner Category of MCQ: methods



Question: 22

(A) 65 & Infinite loop
(B) 65
(C) Nothing is printed
(D) Compilation Error

Level: Expert Category of MCQ: methods



Question: 23

(A) Compilation Error
(B) Exception
(C) Hi
(D) Hello

Level: Practitioner Category of MCQ: methods



Question: 24

(A) 20
(B) 10
(C) Compilation Error
(D) None of the above

Level: Practitioner Category of MCQ: methods



Question: 25

(A) true
(B) false
(C) Compilation Error
(D) None of the above

Level: Practitioner Category of MCQ: methods



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