what is the difference between static class and singleton class? can we create static class?
Answer Posted / sumitpalsingh
Static class always a inner class. and static class can create multiple objects.all object have different reference value.
But on the other hand SingleTon class can have only single object because every object reference variable have same reference value.
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
why java does not support unsigned keyword?
What is the length of a string?
What is final access modifier in java?
What is singleton class in ruby?
What are the three parts of a lambda expression? What is the type of lambda expression?
What is the difference between variable & constant?
Where are variables stored?
Which is better 64 bit or 32 bit?
What is super constructor?
What is a string what operation can be performed out with the help of a string?
Explain differences between collection api and stream api?
What is outofmemoryerror in java?
What is the core java?
What is volatile keyword in java
Write a program in java to calculate the difference between the sum of the odd level and even level nodes of a binary tree.