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 function of static in java?
Why is java so popular?
Explain about public and private access specifiers?
How do you reverse a string in java without using string buffer?
What is static synchronization?
What do you mean by pointer value and address?
What is definition and declaration?
What is the use of inner class?
What are the 5 types of research methods?
What is data and its types?
Write a program to check string is palindrome without using loop?
What are streams in java 8?
How is string immutable in java?
What are loops in java? What are three types of loops?
How objects of a class are created if no constructor is defined in the class?