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 import java util arraylist?
How to sort double array in java?
Can there be an abstract method without an abstract class?
what is synchronization and why is it important? : Java thread
Is object a data type?
Can we have this () and super () together?
Can we call thread start () twice?
How many decimal digits is 64 bit?
What is the difference between Java1.4 and Java1.5
How do you create immutable object in java?
Difference between operator overloading and function overloading
Differentiate between the constructors and methods in java?
What is a method in java?
enlist some features of jdk.
How to sort an array in java without using sort method?