MCQ Single Best Answer Not Set

Q
public class MyClass{ }
For the above class(MyClass) what is the correct way of declaring constructor?

ID: #2186 Java Constructor and Methods 1,455 views
Question Info
#2186Q ID
Not SetDifficulty
Java Constructor and MethodsTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • A MyClass(){}
  • B 1 and 3
  • C public MyClass(){}
  • D public MyClass(void){}
Correct Answer: Option B

Explanation

1 and 3

Share This Question

Challenge a friend or share with your study group.