Welcome to the Java Programming Forums

The professional, friendly Java community. 21,500 members and growing!

The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: Singleton thread safe

  1. #1
    Junior Member
    Join Date
    Oct 2011
    Thanked 0 Times in 0 Posts

    Default Singleton thread safe

    If I have a singleton object where all instance and class variables are thread safe objects, is that object thread safe?

  2. #2
    Junior Member
    Join Date
    Oct 2011
    Thanked 1 Time in 1 Post

    Default Re: Singleton thread safe

    No, not generally. It all depends on your singleton object.

Similar Threads

  1. Optimizing Singleton Design Pattern
    By tcstcs in forum Java Theory & Questions
    Replies: 4
    Last Post: April 19th, 2011, 02:13 AM
  2. API singleton theory
    By dunnkers in forum Java Theory & Questions
    Replies: 10
    Last Post: February 24th, 2011, 12:57 PM
  3. Make servlet thread safe.
    By codeJ in forum Java Servlet
    Replies: 1
    Last Post: January 5th, 2011, 11:28 AM
  4. Singleton pattern: the purpose of empty constructor
    By Asido in forum Java Theory & Questions
    Replies: 1
    Last Post: August 6th, 2010, 08:58 AM
  5. DateFormat is not thread safe
    By trueacumen in forum Threads
    Replies: 5
    Last Post: August 15th, 2009, 02:16 AM

Tags for this Thread