Objects and Classes - Objective Type Questions in Java with Answers

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]
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]


Month-wise Current Affairs 2021

Category-wise Current Affairs

Jobs by Qualification

Free Mock Test