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 t in parametric equations?

550


Can we have multiple classes in single file ?

609


How do you insert a line break?

499


What is anonymous inner class?

611


What is the difference between an interface and an abstract class?

542






What is close method? How it's different from Finalize & Dispose?

567


Can you have two constructors in java?

503


What are java threads?

623


In which language java is written?

542


Are generics important java?

527


What are different types of arrays?

537


What is meant by flickering?

658


When is the arraystoreexception thrown?

570


How big is a 64 bit float?

542


What does the three dot emoji mean?

586