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
What are nested classes in java?
What is Gang of four design patterns
Why do we need wrapper classes?
Suppose if we have variable ' I ' in run method, if I can create one or more thread each thread will occupy a separate copy or same variable will be shared?
What are the core java topics?
What is array pointers ?
how to run ecllipse with jettyserver for windows environment using batch file
What are predicates in java 8?
What is collection sort in java?
Why object class is super class for every class in java?
What is method overloading in java ?
What is object cloning in Java?
What is the integer of 16?
Why bytecode is called bytecode?
How do you check if an arraylist is not empty?