Home Discussion Discuss: Singleton Design Pattern

  • WrongShankar October 5, 2011 at 2:12 PM

    This is not a proper singleton patter arse

  • javanitin March 24, 2012 at 2:00 PM

    its usefully but i want full describtion.....

  • javabhagyashri hadkar July 26, 2012 at 2:37 PM

    too good!!!

  • FeedBackPD August 24, 2012 at 3:06 PM

    Excellent Example! Thank You!

  • Wrong Example Kavi May 22, 2014 at 12:34 AM

    How you can get the instance of a class with new operator if it's constructor is a private method ? Example main method is totally wrong.

  • singleton design patternbondita September 1, 2011 at 5:42 PM

    give some example of how to use the singleton class from another class...thanks

Post your Comment



Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image
 
 
Related Articles
Java Interview Questions

Design pattern
Design pattern  explain factory pattern 

Flex Questions

Design Pattern in flex
Design Pattern in flex  Hi.... I want to know about What design patterns have you used? in Actionscript and java? please give me the name of this design pattern... Thanks   Ans: Singleton design pattern is used 

JDBC Questions

Design Pattern - JDBC
Design Pattern  what is adaptar design pattern The Adapter pattern is used so that two unrelated interfaces can work together. The joining between them is called an Adapter  The Adapter pattern is used so that two 

Java Beginners

Design pattern - Java Beginners
Design pattern  How to make a java program to check the java program is already started if started the execution then dont allow the new program to start 

Design concepts & design patterns Questions

DAO DTO design pattern
DAO DTO design pattern  Hi,using dao and dto i want to perform insert,update and delete operation.and the data should navigate from 1 frame 2 another.that page should b smthng like this: <%@ page language="java" import 

Design concepts & design patterns Questions

DAO DTO design pattern
DAO DTO design pattern  Hi,using dao and dto i want to perform insert,update and delete operation.and the data should navigate from 1 frame 2 another.that page should b smthng like this: <%@ page language="java" import 

Design concepts & design patterns Questions

DAO DTO design pattern
DAO DTO design pattern  Hi,using dao and dto i want to perform insert,update and delete operation.and the data should navigate from 1 frame 2 another.that page should b smthng like this: <%@ page language="java" import 

Design concepts & design patterns Questions

DAO DTO design pattern
DAO DTO design pattern  Hi,using dao and dto i want to perform insert,update and delete operation.and the data should navigate from 1 frame 2 another.that page should b smthng like this: <%@ page language="java" import 

Design concepts & design patterns Questions

Sugget a design pattern and the advantages in it - Design concepts & design patterns
Sugget a design pattern and the advantages in it  What is design pattern and what is the advantage of it?  Hi, using design pattern... of Design Pattern, i guess it's useful.http://www.javajazzup.com/issue9/page36.shtml 

General

Design Pattern
Design Pattern      ... the problem exists). This tutorial explains the design pattern in the following list of points. Introduction to design pattern Why Use Patterns 

Design concepts & design patterns Questions

Design Pattern used in Struts - Design concepts & design patterns
Design Pattern used in Struts  Can someone tell what is MVC2 Design Pattern??  Hi friend, Read for more information, http://www.javajazzup.com/issue3/page44.shtml 

Free Magazine

Design Pattern
Design Pattern           Observer Design Pattern This design pattern defines one... to demonstrate that how observer pattern works, for this, the example creates two windows 

Struts Questions

MVC design pattern used in Struts framework?
MVC design pattern used in Struts framework?  How is the MVC design pattern used in Struts framework 

Java Interview Questions

Entity DB design pattern - Java Interview Questions
Entity DB design pattern  I want the information for Entity DB design pattern 

Free Magazine

Design Pattern
Design Pattern          What is a design pattern? The design patterns are language-independent strategies used to solve common object-oriented design 

Java Interview Questions

Visitor Design Pattern - Java Interview Questions
Visitor Design Pattern  Tell me, what is Visitor Design Pattern... for Visitor Design Pattern?  Visitor Design Pattern - Used to create... pattern provides additional functionality to a class!Example of Visitor Design 

Free Magazine

Visitor Design Pattern
Visitor Design Pattern         Visitor Design Pattern The design pattern provides additional functionality to a class. The Visitor pattern allows us 

Free Magazine

Design Pattern
Design Pattern         Template Design Pattern These types.... This design pattern is used to develop similar kind 

Struts 2 Tutorials

Understanding MVC design pattern
Understanding MVC Design Pattern The MVC (Model View Controller) design pattern is used by the struts for building an applications. It makes the application...; is to separate the business data from the presentation of the users. This design pattern 

Free Magazine

Design Pattern
Design Pattern        ... the entities.  Decorator Design Pattern This section deeply discusses the Decorator design pattern, a kind of structural pattern. In object 

General

J2EE Singleton Pattern - Design Pattern Tutorials
J2EE Singleton Pattern Singleton Design Pattern This design pattern governs the object instantiation of Object in Java. This design pattern is used when...; } } The singleton design pattern is used with the conjunction with the factory 

Free Magazine

Creational Design Pattern
Creational Design Pattern          Design pattern includes creational, structural, and behavioral.... Creational design pattern tries to reduce the creational complexities (of an object 

Struts 2 Tutorials

Creating Data Access Object (DAO) Design Pattern
Creating Data Access Object (DAO) Design Pattern Data Access Object is the import component of the design patter of java. It provides a technique to separating the object persistence and data access logic. All the basic data access 

Design Patterns

Design Pattern
 

Design Patterns

Introduction to Design Pattern
Introduction to Design Pattern       The design patterns are language-independent strategies.... Design pattern is a indispensable part of Java and J2ee technologies. Learning 

Design concepts & design patterns Questions

Design Patterns
Design Patterns  Explain the Factory Pattern, VO Pattern, DAO Pattern, and Singleton Pattern 

JDBC

Java Model View Controller (MVC) Design Pattern
View Controller ) Design Pattern Model View controller is a classical design... logic and view who represents data. MVC design pattern isolates..., testing and maintenance for each components. This design pattern is divided 

Hibernate Questions

pattern used in hibernate.
pattern used in hibernate.  how many design patterns are used in hibernate 3? please also mention the name of those design pattern. Thanks, sudhil mishra 

Design Patterns

Composite Pattern
with the Composite Design Pattern. Composite pattern represents these objects...: This design pattern is used when the responsibilities are needed to be added dynamically... Composite Pattern       

Free Magazine

Design Pattern
Design Pattern           Behavioral Patterns Behavioral patterns are those patterns, which are specifically concerned with communication (interaction 

DMCA.com