Beginner Java
Q12 / 100

What is a constructor?

Correct! Well done.

Incorrect.

The correct answer is B) A special method used to initialize objects

B

Correct Answer

A special method used to initialize objects

Explanation

A constructor has the same name as the class, no return type, and is called automatically when an object is created with new.

Progress
12/100