How many objects are created for a singleton class
Answer Posted / rajani nagandla
The Singleton is a useful Design Pattern for allowing only
one instance of your class.The Singleton's purpose is to
control object creation, limiting the number to one but
allowing the flexibility to create more objects if the
situation changes. Since there is only one Singleton
instance, any instance fields of a Singleton will occur
only once per class, just like static fields.
| Is This Answer Correct ? | 7 Yes | 1 No |
Post New Answer View All Answers
Why static functions are used?
What is outofmemoryerror in java?
What is java util function?
Which keyword specify that a variable is effectively final ?
What is == in java?
What is functional interface in javatpoint?
What is a dynamic array java?
What is difference between == equals () and compareto () method?
What is difference between synchronize and concurrent collection in java?
Does constructor creates the object ?
What are parsing rules?
Can a class be private or protected in java?
how a programmer confirms that the data submitted has been succesfully inserted into the database(either oracle or my sql).. How a programmer confirm if there is any problem with the program he wrote for insertion... ANS:--- >executeupdate method is having boolean return type, if anything goes wrong in data insertion or data updation, it would return false. otherwise, if it successfully inserts data into the database, it would return true NOW HOW TO I CHECK IN MY DURING EXECUTION WHETHER IT RETURNS TRUE OR FALSE... WELL IT WILL DISPLAY ANY MESSAGE OR NOT
What is linked hashmap and its features?
How many types of string data types are there?