can we create object for static class in java

Answer Posted / surendra pokuri

we cann't code static outer class.
we can define static nested class.
so we can create instance of static nested class, but no
need to create.
we can use directly
as
outerclass.innercla.

Is This Answer Correct ?    4 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Name few "optional" classes introduced with java 8 ?

871


What is the difference between Error, defect,fault, failure and mistake?

869


What is unicode in java?

714


What is a package in java? List down various advantages of packages.

978


Why vector class is used?

719


How to perform linear search in java?

752


What does java edition mean?

752


What is meant by class loader? How many types are there? When will we use them?

722


What is a java object and java application?

801


Explain about complier design(phases)

836


What is the use of jtable?

853


Write a program to reverse array in place?

778


What is the concatenation operator in java?

818


What are the restriction imposed on a static method or a static block of code?

807


What are void pointers?

980