Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

The rules of Java constructors

807588Feb 13 2009 — edited Feb 13 2009
A constructor with no parameters will automatically call super(). If I extend an object with a parametered constructor, I need to manually enter that constructor into my subclass constructor "super(a, b)".

What then of non extended objects? In this non-extended object if I make a constructor that takes parameters doesn't it automatically make calls to super(). It has to to construct an Object object no?


I haven't read anything regarding this specific behaviour. I was hoping someone could confirm or deny my suspicions.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 13 2009
Added on Feb 13 2009
10 comments
1,076 views