Answer Posted / sathya
Inner classes as name suggests, can be declared within a
class, as for that matter, with in a for statement too... or
with in a method of another class.
Anonymous classes are also inner classes but without a name,
The advantage being more abstraction of code, but more
confusing to beginners
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is the final access modifier in java?
Can this keyword be used to refer static members?
What is a method in programming?
Can a top level class be private or protected?
Name component subclasses that support painting in java programming?
Why spring singleton is not thread safe?
What is the list interface in java programming?
What is a lambda expression ? What's its use ?
Can we create object of inner class in java?
What is string builder in java?
What are multiple inheritances? Is it supported by java?
What are keywords give examples?
What modifiers are allowed for methods in an interface?
Can we have more than one package statement in the source file?
Explain about join() method?