Skip to Main Content

Java HotSpot Virtual Machine

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!

Can java have Protected or Private Constructor

843829Jul 8 2006 — edited Sep 10 2007
Hi,
can java have Priavte or protected constructor,
as we know java have default and public constructor ,

and in using singleton design patters we can use private & protected constructor,

so, what is the main logic,


Regards,
Prabhat
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 8 2007
Added on Jul 8 2006
5 comments
414 views