Can you use both this() and super() in a constructor in Java?



No, you cannot have both this() and super() in a single constructor.

Samual Sam
Samual Sam

Learning faster. Every day.


Advertisements