Objects and Classes - Java Multiple Choice Interview Questions with Answers

(11) Which of the following is not true about constructors?
[A] It initializes an object immediately upon creation
[B] It is syntactically similar to a method
[C] The return type of class constructor is the class type itself
[D] All of the above

Comment

Answer: Option [D]
(12) A default constructor has
[A] has no arguments
[B] has no return type
[C] has one argument but no return type
[D] has two arguments

Comment

Answer: Option [A]

DOWNLOAD CURRENT AFFAIRS PDF FROM APP

Article and Schedule Quiz Start Test!
(13) When a method is made static, it cannot use
[A] this
[B] super
[C] Both [A] and [B]
[D] None the above

Comment

Answer: Option [B]
(14) Which method of the thread class should be defined?
[A] run()
[B] start()
[C] Both [A] and [B]
[D] None of these above

Comment

Answer: Option [A]
(15) In Java, main() method rteturns a value of type
[A] void
[B] int
[C] real
[D] string

Comment

Answer: Option [A]

Take Mock Tests

Missiles Mock Test Start Test!
SSC MTS Mock Test Start Test
IBPS CLERK MOCK TEST Start Test
SSC MTS 2022 JULY 26 Shift 1 (ENGLISH) Start Test!
SSC GD Previous Year Paper 2021 Nov 17 Shift - I (Hindi) Start Test!
SSC CGL Tier - 1 PYP 2022 April 21 Shift- 1 (ENGLISH) Start Test!
MPSC PAPER I MOCK TEST 1 (ENGLISH) Start Test!
IB Security Assistant Mock test 1 (english) Start Test!
UP POLICE CONSTABLE MOCK TEST 1 Start Test!
DELHI POLICE CONSTABLE MOCK TEST 1 (HINDI) Start Test!

Chapters