The first statement of the constructor should be either a call to super() or this().:There is nothing such like a first line in constructor.The constructor can include any initializations to be performed depending upon the parameters passed.The constructor may even contain no code at all.:super();:There is certainly first statemnt in the Constructor which should be Optionally Provided by You.:the first statement of the constractors should be super or this or any local variable alse can be wrritten in the constractors.
Category:Java Interview Questions
No comments:
Post a Comment