can we create object for static class in java

Answer Posted / sandeep

an outer class cannot be static.it can only be declared as
pubic,abstract or final OR a combination..

an inner static class behaves just like a normal static member..

n yes v can creat an object of inner static class as....

Outer.Inner obj=new Outer.Inner();

Is This Answer Correct ?    38 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a bufferedreader?

769


What is an image buffer?

751


What is java life cycle?

781


What is the difference between I ++ and ++ I in java?

759


How to reverse string in java?

893


Why java is secure? Explain.

793


Can you override static methods?

747


Explain java coding standards for methods?

828


What is bool mean?

772


What is application system?

713


How do you add an element to a set in java?

797


What are the skills required for core java?

787


What is an off by one error in java?

743


What are controls and their different types in awt?

870


Where is the singleton class used?

794