Why do inner class cannot have static declaration except
static nested class?
Answers were Sorted based on User's Feedback
Answer / vipul
Inner classes share a intimate relationship wth the outer
class which means to instantiate the inner class we need to
obtain the object of the outer class.in any case the inner
class contain any static member then we can access it only
with inner class name in that case we won't require its
object whch means we won't require the outer class
object.but java doesn't allow this if we want to access ny
if the inner class data member we must ahve outer class n
inner class object....queries r most welcomed..
| Is This Answer Correct ? | 6 Yes | 2 No |
Answer / 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 |
how we can use debug in myeclipse 6.0 in order solve the problems that exist in our program when there are 900 to 1000 pages in a web application
What is void keyword?
What is the original name of java?
Explain the difference between jvm and jre?
What are Access Specifiers and Access Modifiers.
Write a program to find maximum and minimum number in array?
What does main method?
What is equlas() and hashcode() contract in java? Where does it used?
Is java jre still free?
What are the legal operands of the instanceof operator?
What does void * mean?
What is the preferred size of a component in java programming?