πŸ“Š JAVA
Q. Choose the correct way of creating an object of the below class.
Code:
class Table
{
  Table(){System.out.println("Table Created");}
}
  • (A) Table t = new Table;
  • (B) Table t = new Table();
  • (C) Table() t = new Table();
  • (D) None of the above
πŸ’¬ Discuss
βœ… Correct Answer: (B) Table t = new Table();

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

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