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
What is a bufferedreader?
What is an image buffer?
What is java life cycle?
What is the difference between I ++ and ++ I in java?
How to reverse string in java?
Why java is secure? Explain.
Can you override static methods?
Explain java coding standards for methods?
What is bool mean?
What is application system?
How do you add an element to a set in java?
What are the skills required for core java?
What is an off by one error in java?
What are controls and their different types in awt?
Where is the singleton class used?