Create a Singleton class which contains the following components: A private Singleton non parameterized constructor. A public String instance variable named str Write a static method named getSingleInstance that returns the single instance of the Singleton class
Write a test that gets two instances of Singleton class. Check that both objects are the same.