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 the access scope of a protected method?
What is native code?
What is array length?
Difference between comparator and comparable in java?
What is a singleton factory?
What are the different types of java?
Difference between method overloading and method overriding in java ?
How do I stop concurrentmodificationexception?
Why is String immutable?
What is thread safe java?
Why volatile is used in java?
What is connection class in java?
Can we nested try statements in java?
What is the mapping mechanism used by java to identify IDL language?
What is a lambda expression ? What's its use ?