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
Is list thread safe in java?
How many bytes are there?
What is command line argument
What is complexity in java?
What is the constructor?
Can singleton class be inherited in java?
Is it necessary that each try block must be followed by a catch block?
What is difference overloading and overriding?
How to sort array in descending order in java?
What is the final blank variable?
Explain public static void main(string args[]).
How many bits is a string in java?
Which variables are stored in stack?
What is reverse function?
Why for each loop is used?