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 keyword and identifier?
What is package private scope in java?
What are loops in java?
What are the access modifiers available in java?
What is nan inf?
Is 0 a prime number?
What is a private class in java?
What is the vector class in java programming?
What's the default access specifier for variables and methods of a class?
Is 0 an even number?
What is string in java?
What's the purpose of using break in each case of switch statement?
Explain heap sort?
How would you convert bytes to string?
What is public static?