this versus super
QuizEasy-MediumJava onlyAsked in: Accenture, Capgemini, Infosys, TCS
Which statements about this and super are true? Pick all that apply.
this.name = name;sets the field when a parameter has the same namesuper.sound()calls the parent's version of an overridden method- A constructor can call both
this(...)andsuper(...) thiscan be used inside a static method
This question is part of Pro+
Pro+ opens every question in Interview Prep and the mock interview. Every article and the first 2 questions of each topic stay free. Hands-on Selenium and API tasks follow their course lesson's own lock.