Q. How do you create an instance of a class?

  • (A) new ClassName()
  • (B) create ClassName()
  • (C) object ClassName()
  • (D) instanceof ClassName()
πŸ’¬ Discuss
βœ… Correct Answer: (A) new ClassName()
Explanation: Use the new keyword to create an instance of a class.
Explanation by: Mr. Dubey
Use the new keyword to create an instance of a class.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
75
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
84%
Success Rate