this() is used to invoke a constructor of the same class. super() is used to invoke a superclass constructor.:From within a constructor, you can also use the this keyword to call another constructor in the same class. Doing so is called an explicit constructor invocation. Here&
Category:Java Interview Questions
No comments:
Post a Comment