ContactUs :

Please send your Questions & Answers or Feedback to "mohan@javabook.org"

How can u use a private constructor?

Used if you don’t want other classes to instantiate the object. The instantiation is done by a public static method with  in the same class.

Used in singleton ,factory method pattern and in utility classes.

 

Related Posts Plugin for WordPress, Blogger...
Flag Counter