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 merge sort in java?
What is the type of lambda expression?
What is the difference between array and array list in java?
Explain different types of wrapper classes in java?
What are locale settings?
What is a dynamic array java?
Difference between static and dynamic class loading.
Is the milky way in a void?
What is finalize()? Is finalize() similar to a destructor?
Is java 9 released?
What is map java?
Is break statement can be used as labels in java?
List some important features of java 10 release?
Which object oriented concept is achieved by using overloading and overriding?
Can an interface have a constructor?