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
What Is Composition?
What is a numeric digit?
Can a main method be declared final?
What are the differences between stringbuffer and stringbuilder?
What are thread safe functions?
What happens if we don’t override run method ?
Name and explain the types of ways which are used to pass arguments in any function in java.
What is the use of accept () method in java?
I don’t want my class to be inherited by any other class. What should I do?
Is a boolean variable?
Is arraylist an object in java?
How to do encapsulation in java?
What is the difference between JDBC 1.0 and JDBC 2.0?
Explain covariant method overriding in java.
Why lambda expression is used in java?