Consider the options written out.
1 must be valid.
2 is a method, not a constructor.
3 would be written like
Code: Select all
public TestClass(String s);
4 must be correct.
5 would be written like
Code: Select all
public TestClass(String s1, String s2){
};
I can only see 2 valid constructors in this question.
Could someone enlighten me to the 3rd correct option?
Thanks!