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
What is meant by method overriding?
What is a wrapper method?
What is java util collection?
Is 0 a prime number?
How do you create a first line indent?
Explain the private field modifier?
Can list be null in java?
Does java support Operator Overloading?
What is serial version uid and its importance in java?
How does hashset works in java?
What is instance synchronization?
Difference between a process and a program?
What does escaping a character mean?
What is t in generics in java?
How do you sort in descending order in java using collections sort?