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 dynamic binding(late binding)?
Define inheritance with reference to java.
Define an enumeration?
What are the 6 functions?
Can you call a method in a method?
Can java object be locked down for exclusive use by a given thread?
What is thread pool in java with example?
How do you convert boolean to boolean?
How do you generate random numbers in java?
What is a line break?
Is arraylist ordered in java?
What is nextint java?
What is the right data type to represent a price in java?
What are the advantages of functions?
Why multiple inheritance is not supported by java?