Q. The keyword used to create an object
β
Correct Answer: (C)
new
Explanation: 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.
Class Student {
//Some code
}
Student stu1 = new Student();
This will create an object of class Student.