Can I extend singleton class in java?
Answer / Aneesh Yadav
No, extending a singleton class is not allowed because the primary purpose of a singleton is to ensure only one instance exists and inheritance would create multiple instances.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is run-time class and system class? what is their purpose?
How many types of flags are there?
List java api that supports threads?
A abstract class extending an abstract class.Super class has both abstract and non-abstract methods.How can we implement abstract and non-abstract mehtods? Explain with snippet
What is a final class ?
Is class forname reflection?
What is a bubble sort in java?
Is singleton set an interval?
What does sprintf mean?
What is preparedstatement in java?
What do you mean by data type?
What are the two categories of data types in the java programming language?