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 the longest unicode character?
Explain wait(), notify() and notifyall() methods of object class ?
Is arraylist zero based?
What is a platform?
Should you use singleton pattern?
what is the difference between future and callable interface in java?
What are the main differences between the java platform and other platforms?
Similarity and difference between static block and static method ?
Can a class have a static inner class?
How do you compare objects in java?
Explain the private field modifier?
What is meant by tab pans?
Is java free for businesses?
What is object english?
What is the use of using enum to declare a constant?