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

Home » Java » Objective Questions And Ans (Page-2)

Java Objective Questions (MCQs) - 224

Page 2 (21 - 40)


Question: 21

(A) default
(B) public
(C) protected
(D) All of these

Level: Practitioner Category: other
[Posted by: Admin | Chicago, USA]



Question: 22

(A) True
(B) False

Level: Beginner Category: methods
[Posted by: Admin | Chicago, USA]



Question: 23

(A) byte
(B) short
(C) long
(D) class

Level: Beginner Category: datatype
[Posted by: Admin | Chicago, USA]



Question: 24

(A) 5
(B) 4
(C) 1
(D) 0

Level: Beginner Category: loops
[Posted by: Admin | Chicago, USA]



Question: 25

(A) 5
(B) 4
(C) 3
(D) 2

Level: Beginner Category: loops
[Posted by: Admin | Chicago, USA]



Question: 26

(A) 5
(B) 4
(C) 3
(D) 2

Level: Practitioner Category: loops
[Posted by: Admin | Chicago, USA]



Question: 27

(A) 1
(B) 2
(C) 3
(D) 4

Level: Practitioner Category: loops
[Posted by: Admin | Chicago, USA]



Question: 28

(A) 0
(B) 1
(C) 2
(D) 3

Level: Practitioner Category: loops
[Posted by: Admin | Chicago, USA]



Question: 29

(A) 0
(B) 1
(C) 2
(D) Infinite times

Level: Practitioner Category: loops
[Posted by: Admin | Chicago, USA]



Question: 30

(A) 5
(B) 4
(C) 3
(D) 0

Level: Practitioner Category: loops
[Posted by: Admin | Chicago, USA]



Question: 31

(A) 5
(B) 4
(C) 2
(D) 1

Level: Practitioner Category: loops
[Posted by: Admin | Chicago, USA]



Question: 32

(A) 5
(B) 10
(C) 0
(D) Compilation Error

Level: Beginner Category: conditional
[Posted by: Admin | Chicago, USA]



Question: 33

(A) 5
(B) 10
(C) 510
(D) Compilation Error

Level: Practitioner Category: conditional
[Posted by: Admin | Chicago, USA]



Question: 34

(A) 5
(B) 510
(C) 5100
(D) Compilation Error

Level: Expert Category: conditional
[Posted by: Admin | Chicago, USA]



Question: 35

(A) 5
(B) 510
(C) 5100
(D) 100

Level: Expert Category: conditional
[Posted by: Admin | Chicago, USA]



Question: 36

(A) 5
(B) 10
(C) 100
(D) 0

Level: Practitioner Category: conditional
[Posted by: Admin | Chicago, USA]



Question: 37

(A) 10
(B) 510
(C) 5100
(D) 100

Level: Expert Category: conditional
[Posted by: Admin | Chicago, USA]



Question: 38

(A) Compilation Error
(B) 10-even-
(C) 10-even-0
(D) 10-odd

Level: Expert Category: conditional
[Posted by: Admin | Chicago, USA]



Question: 39

(A) Compilation Error
(B) 10-even-
(C) 10-odd-
(D) 10-even-0

Level: Expert Category: conditional
[Posted by: Admin | Chicago, USA]



Question: 40

(A) Compilation Error
(B) Length is 5-10
(C) Length not in 5-10
(D) nothing is printed

Level: Practitioner Category: conditional
[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 Other