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 difference between an inner class and a sub-class?
How to change the priority of thread or how to set the priority of thread?
How to store image in arraylist in java?
How many bytes is string in java?
Is it possible to use string in the switch case?
Explain java coding standards for classes or java coding conventions for classes?
What is a local class in java?
How we can declare a static variable?
Can we use a switch statement with strings?
What is += mean in java?
Can we sort list in java?
What is the significance of continue jump statement? Explain with an example.
What is the final class?
What is static import in java?
Lowest Common ancestor in a Binary Search Tree and Binary Tree.