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
How is hashset defined in java?
Can you declare the main method as final?
Is array a class in java?
List the interfaces which extends collection interface?
What are keywords in java?
Where is jre installed?
What is volatile keyword in java
Can an integer be a string?
Difference between character constant and string constant in java ?
What is java thread dump, how can we get java thread dump of a program?
Write a java program to print fibonacci series?
Can we override compareto method?
How do I enable java in safari?
Is .net better than java?
How to instantiate member inner class?