can we create object for static class in java
Answer Posted / shishir
for a top level class a static but you can create a inner
class static and make an object of same, but it will be of
no use as static class you can use with out instantiating.
| Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
How does a cookie work in Servlets?
How does varargs work in java?
What is default size of arraylist in java?
How do you sort an array in java?
What is a string token?
What is the base class in java from which all classes are derived?
Differentiate between the constructors and methods in java?
How many characters is 16 bytes?
Why java is made?
Why Do I Get A "permission Denied" Error After Downloading The .jnlp Java Launcher For The Vkvm?
Class c implements interface I containing method m1 and m2 declarations. Class c has provided implementation for method m2. Can I create an object of class c?
What is the function of character?
What is public/private protected in java?
What is the epoch date?
What is the purpose of the system class in java?