Q. In Java, which method is automatically called when an object is created?

  • (A) start()
  • (B) main()
  • (C) init()
  • (D) constructor()
πŸ’¬ Discuss
βœ… Correct Answer: (D) constructor()

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
114
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Ranjeet
Publisher
πŸ“ˆ
87%
Success Rate