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
What is the difference between menuitem and checkboxmenu item?
What is the implementation of destroy method in java. Is it native or java code?
What is the use of singleton class?
What is the difference between a static and a non-static inner class in java programming?
Which collection is ordered in java?
How do you clear a list in java?
What is a substitution variable?
What is the difference between import java.util.date and java .util?
What if static is removed from main method?
Give the difference between the println method and sqrt method?
what methods would you overwrite in java.lang.object class?
What are daemon Threads in java?
What is a layout manager and what are different types of layout managers available in java awt?
What is illegal identifier in java?
How do you convert int to char in java?