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!

Why the need for default Constructor

807569Jun 21 2006 — edited Jun 21 2006
hi my doubt is as follows,

when i dont define a constructor in my java class it calls a default constuctor.

when i define a constructor with say a parameter it requires me to define another constructor without any parameters

i would like to know why? i mean why does it not call the default constructor.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 19 2006
Added on Jun 21 2006
6 comments
383 views