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 are the characteristics of Final,Finally and Finalize keywords.
Can we define private and protected modifiers for the members in interfaces?
What is void class in java?
Explain differences between checked and unchecked exceptions in java?
what is the difference between preemptive scheduling and time slicing? : Java thread
What programs use java?
What is the difference between class & structure?
What is empty string literal in java?
How do you use substring in java?
Can an arraylist be empty?
What is the use of parse function in java?
What is a 16 bit word?
What is assembly condition codes?
What is a double?
Can an anonymous class be declared as implementing an interface and extending a class in java programming?