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
Do you know how to reverse string in java?
Does list allow duplicates in java?
What is the format specifier?
Can we call the constructor of a class more than once for an object?
What is the difference between the direct buffer and non-direct buffer in java?
How do you make a thread in java?
What is the function of log?
Why scanner is used in java?
What does nullpointerexception mean?
What is the purpose of declaring a variable as final?
Is java still relevant?
What is use of map in java?
Java is Pass by Value or Pass by Reference?
Explain java coding standards for constants?
What is a protected method?