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


Please Help Members By Posting Answers For Below Questions

What is import java util arraylist?

659


How to sort double array in java?

588


Can there be an abstract method without an abstract class?

539


what is synchronization and why is it important? : Java thread

588


Is object a data type?

562






Can we have this () and super () together?

609


Can we call thread start () twice?

521


How many decimal digits is 64 bit?

536


What is the difference between Java1.4 and Java1.5

1830


How do you create immutable object in java?

539


Difference between operator overloading and function overloading

613


Differentiate between the constructors and methods in java?

511


What is a method in java?

562


enlist some features of jdk.

562


How to sort an array in java without using sort method?

526