Yesterday I came to know about Singleton Class. And I went through it and understood also.
But now I have a query .......!
Actually there are so many Inbuilt Classes I saw in Java, those have private or protected constructor.
Are those for Singleton purposes?
Please clarify me.
Kind regards,
Dmjpro.
But now I have a query .......!
Actually there are so many Inbuilt Classes I saw in Java, those have private or protected constructor.
Are those for Singleton purposes?
Please clarify me.
Kind regards,
Dmjpro.
Comment