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
Can a class be defined inside an interface?
Explain different ways of creating a thread. Which one would you prefer and why?
When object is created and destroyed?
How do you remove all elements from an arraylist in java?
What is integers and example?
What is the difference between serializable and externalizable interfaces?
What is encapsulation in java?
What is quick sort in java?
What is the purpose of garbage collection in java? When is it used?
Where are the card layouts used?
What is data string?
What java is used for?
What is unicode datatype?
What is arguments in java?
What is the difference between assignment and initialization?