ContactUs :

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

Where and how can you use a private constructor?

Private constructor is used if you do not want other classes to instantiate the object and to prevent subclassing.The instantiation is done by a public static method (i.e. a static factory method) within the same class.

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