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
Where are variables stored?
Can we use return in constructor?
Can java list contain duplicates?
Where import statement is used in a java program?
What does super keyword do?
What does jenkins do?
Define locale.
Can you instantiate the math class in Java?
What is java in detail?
Does java isempty check for null?
Can constructor return value?
Why do we need singleton?
Can we assign the reference to this variable?
What is the size of integer?
What is difference between hashset and hashmap in java?