Answer Posted / janet
Inner Class: classes defined in other classes ,including
those defined in methods are called inner classes.
An inner class can have any accessiblity including private.
Anonumous class: Anonymous class is a class defined inside
a method without a name and is instantiated and declared in
the same place and cannot have explicit constructors.
Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is a parent class in java?
What are memory tables?
How do you sort a list in java?
How do you include a string in java?
If an application has multiple classes in it, is it okay to have a main method in more than one class?
Can size_t be negative?
Why is core java important?
What are the parts of a method?
What are the disadvantages of object oriented programming?
Is it possible to override private or static method in java?
Java is pass by value or pass by reference? Explain
What is method in java ?
Explain oops concepts in detail?
What is operator overloading. Is it is supported in java?
What is anonymous inner class?