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



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

Updated on: 2019-07-30T22:30:20+05:30

2K+ Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements