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
Can we write multiple catch blocks under single try block?
Why is whitespace important?
What does i ++ mean in Java?
How to instantiate static nested classes in java?
What is a function in java?
How does regex work?
What is try-with-resources in java?
How many bytes is double?
Can a private method of a superclass be declared within a subclass?
What are class types in java?
What is command line argument in java?
Is sizeof a keyword in java programming?
What are the features in java?
What is the technique adopted to create an immutable class?
When should I use singleton pattern?