Objects and Classes - Objective Type Questions in Java with Answers

Sports GK Questions and Answers 2024 (Latest Updated)

Awards & Honours GK Questions 2024 (Latest Updated)

Questions
6 Which of the following is not a wrapper class?
A Vector
B Character
C Boolean
D Integer

Answer: Option [A]
7 Which of the following method is used to initialize the instance variable of a class?
A Class
B Public
C Constructor
D Destructor

Answer: Option [C]
Advertisement
Article and Schedule Quiz Start Test!
DOWNLOAD CURRENT AFFAIRS PDF FROM APP
8 Object oriented programming method is followed in
A C programming language
B C++ programming language
C C# programming language
D Both [B] and [C]

Answer: Option [D]
9 The last statement in a finalize method should always be
A super (finalize)
B super finalize()
C finalize(method name)
D no restrictions

Answer: Option [D]
10 The methods defined by Thread class that help to manage threads are :
A joined
B stop
C getName
D all of the above

Answer: Option [D]

Chapters

Assam Direct Recruitment Test Series

Computer Science Topics