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
Is it possible to define a method in java class but provide it’s implementation in the code of another language like c?
If a class is declared without any access modifiers, where can the class be accessed?
What exactly is a .class file?
What are the drawbacks of singleton class?
How to sort elements in a parallel array in java?
how to create multithreaded program? Explain different ways of using thread? : Java thread
What is the concept of multithreading?
What is a ternary operator in java?
What are the actions that can occur when a thread enters blocked state?
What is the use of join method?
What is main difference between variable and constant?
Implement 2 stacks with just 1 array. The stack routines must not indicate overflow unless every slot in array is used.
What are 3 data types?
What is boolean query?
How do you clear an arraylist in java?