Q. The keyword used to create an object

  • (A) class
  • (B) this
  • (C) new
  • (D) malloc
πŸ’¬ Discuss
βœ… 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.
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.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
332
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Ram Sharma
Publisher
πŸ“ˆ
87%
Success Rate