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
May 2018
M T W T F S S
« Mar    
 123456
78910111213
14151617181920
21222324252627
28293031  
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
  • 258,489 hits
IndiBlogger
malliktalksjava.wordpress.c...
70/100