What is the purpose of the ‘new’ keyword in Java?

PYQ RPSC Programmer 2024

What is the purpose of the ‘new’ keyword in Java?

  1. A.

    Defines a new method

  2. B.

    Imports a package

  3. C.

    Creates a new object instance

  4. D.

    Declares a new variable

  5. E.

    Question not attempted

Attempted by 701 students.

Sign up free to check your answer

Sign up free

Explore the full course: Rpsc Programmer

Loading lesson…