Homework 5

Not to be turned in
  1. What is the basic idea for implementing Singleton?

  2. What are some advantages of using a Java enum for implementing a Singleton?

  3. In Java, what do you use if you need a Singleton, but each thread of an application needs its own instance?