Why do inner class cannot have static declaration except
static nested class?
Answer Posted / adithya
Static have only one copy in memory. For class we have to
create objects. But for static we cannot create.
Is This Answer Correct ? | 7 Yes | 9 No |
Post New Answer View All Answers
What will happen when using pass by reference in java?
Are arrays passed by reference in java?
How do I stop concurrentmodificationexception?
which class is the wait() method defined in? : Java thread
Difference between keyword and identifier.
Can we create an object of static class in java?
How to optimize the javac output?
Why is whitespace important?
Explain what access modifiers can be used for variables?
How can you handle java exceptions?
What are the disadvantages of object oriented programming?
Are constructors methods?
Differentiate between nested and inner class in java.
Explain about the select method with an example?
A non-static inner class may have object instances that are associated with instances of the class’s outer class. A static inner class does not have any object instances.