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


Please Help Members By Posting Answers For Below Questions

What is a singleton class? Give a practical example of its usage.

834


Why java is used everywhere?

764


What is parsing a string?

835


What is the difference between public, private, protected, and friend access?

793


What is the difference between compile-time polymorphism and runtime polymorphism?

778


Is java call by reference?

728


explain local datetime api in java8?

779


What is the difference between a method and a procedure?

766


Why is multithreading important?

697


What is logical variable?

728


Is it possible to cast an int value into a byte variable? What would happen if the value of int is larger than byte?

739


Are static members inherited to sub classes?

892


Explain listiterator and methods in listiterator?

762


What are the differences between abstract class and interface?

753


Can a class extend 2 classes in java?

787