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 the main purpose of serialization in java?

638


What is the purpose of using java.lang.class class?

612


Can singleton class be inherited in java?

613


Can a static class have a constructor java?

626


What is singleton pattern?

647






What is main function purpose?

614


What is a native method in java programming?

626


What is jagged array in java?

630


Differences between traditional programming language and object oriented programming language?

669


How many digits is int32?

626


What is the purpose of static methods and variables?

615


What are parsing rules?

612


What are inbuilt functions in java?

665


What is a class reference?

649


Explain heap sort?

792