can we create object for static class in java
Answer Posted / usha
Hi all, If u want to create a static class then no need to
create instance for the class.If u create a instance then
there is no purpose to create that class as static.As in
case of static members & static methods , we are not
creating instance, just we are calling those by using class
name only.
| Is This Answer Correct ? | 54 Yes | 6 No |
Post New Answer View All Answers
Can a private method be declared as static?
What is the intersection and union methods?
When should I use singleton pattern?
What is the difference between a scrollbar and a scrollpane?
What is the primitive type short?
Which object oriented concept is achieved by using overloading and overriding?
What is difference between static class and normal class?
When we should use serialization?
What is void data type?
Is 0 true or is 1 true?
Which one will take more memory: an int or integer?
Do you need to import math in java?
What is integer size in java?
When should the method invokelater() be used?
What is an argument in java?