What is the difference between this() and super()
Options
- super() constructor is invoked within a method of a class while this() constructor is used within the constructor of the sub class
- this() constructor is invoked outside a method of a class while super() constructor is used within the constructor of the sub class
- this() constructor is invoked within a method of a class while super() constructor is used within the constructor of the sub class
- this() constructor is invoked within a method of a class while super() constructor is used outside the constructor of the sub class
CORRECT ANSWER : this() constructor is invoked within a method of a class while super() constructor is used within the constructor of the sub class
Write your comments