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
Enlist few advantages of inheritance?
What's the difference between comparison done by equals method and == operator?
What is data type in java?
How hashmap works in java?
How a string is stored in memory?
What is unmodifiable collection in java?
Can we define static methods inside interface?
What do u mean by variable?
Write a program to solve producer consumer problem in java?
How do you do exponents in java?
Write a program to search a number in the given list of numbers.
Explain the difference between throw and throws in java?
What is abstract class? Explain
Explain about java sdk?
What is the definition of tree ?