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


Please Help Members By Posting Answers For Below Questions

What is a line break example?

750


How do generics work in java?

688


How to find the largest value from the given array.

747


Explain, java is compatible with all servers but not all browsers?

808


Explain the protected field modifier?

815


How do weakhashmap works?

831


Can we convert stringbuffer to string?

756


explain multi-threading in java?

783


What is the use of StringTokenizer class?

804


What does += mean in java?

769


Which java version is latest?

724


What is sortedset in java?

781


What is default constructors?

717


What is connection class in java?

716


What is string substring?

783