A

Admin • 802.91K Points
Coach

Q. The keyword used to create an object

  • (A) class
  • (B) this
  • (C) new
  • (D) malloc
  • Correct Answer - Option(C)
  • Views: 4
  • Filed under category Java
  • Hashtags:

Explanation by: Admin
new keyword is used to create object of class. For example:

Class Student {
//Some code

}


Student stu1 = new Student();

This will create an object of class Student.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.