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 is void class in java?
How big is a 32 bit integer?
Explain exception chaining in java?
What is the purpose of java?
Differentiate storage classes on the basis of their scope?
What is the purpose of an interface?
Can we store variables in local blocks?
What is the basic concepts of OOPS?
What are the characteristics of java?
How many static init can you have?
What are thread safe functions?
How does thread synchronization occurs inside a monitor?
Explain covariant method overriding in java.
What does exp mean in math?
Explain the differences between static and dynamic variables?