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

Home » Java » MCQs (Page-6)

Java Objective Questions (MCQs) - 225

Page 6 (101 - 120)


Question: 101

(A) hi
(B) Compilation Error
(C) Nothing is printed
(D) Exception

Level: Beginner Category of MCQ: classesAndobjects



Question: 102

(A) hi
(B) Compilation Error
(C) Exception
(D) None of the above

Level: Beginner Category of MCQ: classesAndobjects



Question: 103

(A) hi
(B) Compilation Error
(C) Exception
(D) None of the above

Level: Beginner Category of MCQ: classesAndobjects



Question: 104

(A) hi
(B) Compilation Error
(C) Exception
(D) None of the above

Level: Beginner Category of MCQ: classesAndobjects



Question: 105

(A) hi
(B) Compilation Error
(C) Exception
(D) None of the above

Level: Beginner Category of MCQ: classesAndobjects



Question: 106

(A) error: sum() is private default
(B) hi
(C) Exception
(D) Nothing is printed

Level: Practitioner Category of MCQ: classesAndobjects



Question: 107

(A) Code runs but nothing is printed
(B) Code runs in infinite loop
(C) error: Main method not found
(D) Exception

Level: Expert Category of MCQ: classesAndobjects



Question: 108

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

Level: Practitioner Category of MCQ: loops



Question: 109

(A) ASISH
(B) asish
(C) HSISA
(D) HSIS

Level: Practitioner Category of MCQ: arrays



Question: 110

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

Level: Practitioner Category of MCQ: methods



Question: 111

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

Level: Expert Category of MCQ: methods



Question: 112

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

Level: Expert Category of MCQ: methods



Question: 113

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

Level: Practitioner Category of MCQ: methods



Question: 114

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

Level: Expert Category of MCQ: methods



Question: 115

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

Level: Expert Category of MCQ: methods



Question: 116

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

Level: Practitioner Category of MCQ: methods



Question: 117

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

Level: Practitioner Category of MCQ: methods



Question: 118

(A) Inheritance increases execution of program
(B) Inheritance is useful in code re-usability
(C) Inheritance minimizes programming loop holes
(D) None of the above

Level: Beginner Category of MCQ: inheritance



Question: 119

(A) extends is a datatype
(B) extends is a keyword
(C) extends is a class
(D) extend is a package

Level: Beginner Category of MCQ: inheritance



Question: 120

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

Level: Beginner Category of MCQ: inheritance


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