CppBuzz.com
  
Home C C++ Java Python Perl PHP SQL JavaScript Linux Online Test Forum

Home » Java » Java Interview Questions on Classes & Objects

Java Interview Questions on Classes & Objects - 24 Questions


Question: 1

(A) 0
(B) 0
(C) -10
(D) Garbage Value

Forum
Beginner classesAndobjects[Posted by: Admin | Chicago, USA]



Question: 2

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

Forum
Practitioner classesAndobjects[Posted by: Admin | Chicago, USA]



Question: 3

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

Forum
Beginner classesAndobjects[Posted by: Admin | Chicago, USA]



Question: 4

(A) hi
(B) hi
(C) error: sum() has private access
(D) Exception

Forum
Beginner classesAndobjects[Posted by: Admin | Chicago, USA]



Question: 5

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

Forum
Beginner classesAndobjects[Posted by: Admin | Chicago, USA]



Question: 6

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

Forum
Beginner classesAndobjects[Posted by: Admin | Chicago, USA]



Question: 7

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

Forum
Beginner classesAndobjects[Posted by: Admin | Chicago, USA]



Question: 8

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

Forum
Beginner classesAndobjects[Posted by: Admin | Chicago, USA]



Question: 9

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

Forum
Beginner classesAndobjects[Posted by: Admin | Chicago, USA]



Question: 10

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

Forum
Practitioner classesAndobjects[Posted by: Admin | Chicago, USA]



Question: 11

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

Forum
Expert classesAndobjects[Posted by: Admin | Chicago, USA]



Question: 12

(A) 1
(B) 1
(C) 3
(D) Max 256

Forum
Beginner classesAndobjects[Posted by: Admin | Chicago, USA]



Question: 13

(A) Cap Cog
(B) Cap Cog
(C) Cog Cog
(D) Cap Cog Cap Cog

Forum
Expert classesAndobjects[Posted by: Admin | Chicago, USA]



Question: 14

(A) Cap Cog
(B) Cap Cog
(C) Cog Cog
(D) Cap Cog Cap Cog

Forum
Expert classesAndobjects[Posted by: Admin | Chicago, USA]



Question: 15

(A) Yes
(B) Yes

Forum
Practitioner classesAndobjects[Posted by: ASISH ARAVIND | Des Moines USA]



Question: 16

(A) 10203040
(B) 10203040
(C) Hello
(D) None of these

Forum
Expert classesAndobjects[Posted by: ASISH ARAVIND | Des Moines USA]



Question: 17

(A) 10203040
(B) 10203040
(C) Hello
(D) Nothing is printed

Forum
Expert classesAndobjects[Posted by: ASISH ARAVIND | Des Moines USA]



Question: 18

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

Forum
Expert classesAndobjects[Posted by: Admin | Chicago, USA]



Question: 19

(A) Hello
(B) Hello
(C) Exception
(D) None of these

Forum
Practitioner classesAndobjects[Posted by: Admin | Chicago, USA]



Question: 20

(A) Singletons
(B) Singletons
(C) Transactions
(D) None of the above

Forum
Expert classesAndobjects[Posted by: Admin | Chicago, USA]



Question: 21

(A) Anonymous inner class
(B) Anonymous inner class
(C) Inner class
(D) All of the mentioned

Forum
Expert classesAndobjects[Posted by: Arvind | Navi Mumbai India]



Question: 22

(A) 00
(B) 00
(C) 50
(D) 55

Forum
Practionar classesAndobjects[Posted by: Admin | Chicago, USA]



Question: 23

(A) 100
(B) 100
(C) 2
(D) 20

Forum
Practionar classesAndobjects[Posted by: Admin | Chicago, USA]



Question: 24

(A) 100
(B) 100
(C) 2
(D) 20

Forum
Practionar classesAndobjects[Posted by: Admin | Chicago, USA]


[Contribute to this Website]


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