How many objects are created for a singleton class
Answer Posted / utkarsh verma
Some correction required in last solution
void main(){
Single *ptr = Single::Instance(); //The only way to
//instantiate
}
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
Explain the difference between the public, private, final, protected, and default modifiers?
What are the differences between heap and stack memory in java?
Can you use abstract and final both with a method?
What is string subsequence method?
Is char a method in java?
Can a class extend more than one class?
Can we increase array size dynamically in java?
List some important characteristics on jre
What is the role of the java.rmi.naming class?
How we can generate random numbers in java?
Is java an open source?
What is data member in java?
Break statement can be used as labels in java?
What is the purpose of checked and unchecked exceptions in JAVA?
Can we override constructors?