R

Ram Sharma • 193.88K Points
Coach

Q. The keyword used to create an object

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

Explanation by: Geetam
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.


Question analytics