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 variable explain?
What is a void method?
Explain the difference between arraylist and linkedlist in java?
How do you declare a string variable?
Give an example of use of pointers in java class.
Which browsers work with java?
What is the symbol for average?
What is a class variable?
Which java version is latest?
How can you handle java exceptions?
What restrictions are placed on method overriding?
What is array length in java?
What is a key in java?
How do you empty a list in java?
Discuss 2D arrays.