what is inner class?

Answer Posted / amit kumar

A class within another class is known as nested class. There
are two type of nested class static nested class and non
static nested class.The static nested class did'nt access
its enclosed member function directly, where an non static
nested class can directly access. the non static nested
class is known as inner class. There are 4 type of nestated
class they are Nested top-level classes, Member classes,
Local classes, Anonymous classes....

Is This Answer Correct ?    7 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we write multiple catch blocks under single try block?

570


Why is whitespace important?

552


What does i ++ mean in Java?

498


How to instantiate static nested classes in java?

562


What is a function in java?

566






How does regex work?

521


What is try-with-resources in java?

609


How many bytes is double?

545


Can a private method of a superclass be declared within a subclass?

528


What are class types in java?

574


What is command line argument in java?

603


Is sizeof a keyword in java programming?

602


What are the features in java?

574


What is the technique adopted to create an immutable class?

522


When should I use singleton pattern?

541