Which component of a class initialises new objects when created with new…

Which component of a class initialises new objects when created with new keyword in Java?

  1. A.

    Fields

  2. B.

    Constructors

  3. C.

    Methods

  4. D.

    Static blocks

Attempted by 102 students.

Sign up free to check your answer

Sign up free

Explore the full course: Isro

Loading lesson…