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 a singleton class? Give a practical example of its usage.
Why java is used everywhere?
What is parsing a string?
What is the difference between public, private, protected, and friend access?
What is the difference between compile-time polymorphism and runtime polymorphism?
Is java call by reference?
explain local datetime api in java8?
What is the difference between a method and a procedure?
Why is multithreading important?
What is logical variable?
Is it possible to cast an int value into a byte variable? What would happen if the value of int is larger than byte?
Are static members inherited to sub classes?
Explain listiterator and methods in listiterator?
What are the differences between abstract class and interface?
Can a class extend 2 classes in java?