Blog Archives

Singleton Design pattern in JAVA


Below class depicts the Singleton design pattern. SingletonDesignPattern.java package in.javatutorials; /** * @author JavaTutorials * @version 1.0 * */ public final class SingletonDesignPattern { /** * make the class object as private as it is * not used directly out

Tagged with: , , , , , , , , ,
Posted in JAVA

What is a singleton class?How do you writer it? Tell examples?


A class which must create only one object (ie. One instance) irrespective of any number of object creations based on that class. Steps to develop single ton class:- 1.Create a Private construcor, so that outside class can not access this

Tagged with: , , , ,
Posted in JAVA

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 678 other followers

Calendar
July 2018
M T W T F S S
« Mar    
 1
2345678
9101112131415
16171819202122
23242526272829
3031  
Mallikarjun Gunda

This is Mallikarjun Gunda, I am working as a software professional. Blogging is my Passion. This blog contains the posts on Java related technologies and programming languages. I am happy to share my knowledge through the blogs.

Blog Stats
  • 266,262 hits
IndiBlogger
malliktalksjava.wordpress.c...
70/100