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's the default access specifier for variables and methods of a class?
What 5 doubled?
How to perform selection sort in java?
What is the purpose of the runtime class in java programming?
Why string is a class?
What is the purpose of void class?
What is Java Package and which package is imported by default?
How to invoke external process in java.
What kind of variables a class can consist of?
Does java list allow null?
Implement 2 stacks with just 1 array. The stack routines must not indicate overflow unless every slot in array is used.
What is the structure of java?
What is a singleton class in Java?
Can you sort a string in java?
What are inbuilt functions?