this() and super() cannot both be used in the same constructor call: In a single constructor, you can either call another constructor in the same class using this() or call a constructor in the superclass using super(). You cannot use both of them in a single constructor call.
D is answer. Tested.
Output:
Exception in thread "main" java.lang.Error: Unresolved compilation problem:
Constructor call must be the first statement in a constructor
upvoted 1 times
...
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
SoNofPATEL
Highly Voted 1 year, 3 months agovic88
Most Recent 6 days agoDriftKing
1 year, 3 months agoSreeni_A
1 year, 3 months agoVicky_65
1 year, 8 months agoRu_H33
1 year, 9 months agoUAK94
2 years, 2 months ago