Answer Posted / harika.thota001@gmail.com
Inner Class in java so called nested class is nothing but a class that is being defined inside another class. Inner classes are beneficial in two scenarios i.e. access control and naming control. Although these benefits can be acquired using java packages.
anonymous class is an inner class that does not have a name at all. And whose instance is being created at the time of its creation.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
explain what is transient variable in java?
What is Recursion Function?
Explain the importance of throws keyword in java?
What does java final mean?
Difference between object and reference?
How are the elements of a gridbaglayout organized in java programming?
What is the Difference between Final Class && Abstract Class?
Difference between ‘is-a’ and ‘has-a’ relationship in java?
What is data object example?
Is void a return type?
What is the use of isempty in java?
How does map works in java?
What is jvm? Why is java called the platform independent programming language?
Can a abstract class be defined without any abstract methods?
Can you run java program without main method?