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 the list interface in java programming?
What is class and object in java?
What does exclamation mean in java?
What is the difference between applet and application?
Can we overload destructor in java?
Are maps ordered java?
Can you inherit from an abstract class java?
How are destructors defined in java?
How many types of memory areas are allocated by JVM in java?
What is size of int in java?
What are unchecked exceptions in java?
Why java is used everywhere?
Why java is object oriented?
What is starvation?
What is linked hashmap and its features?