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 difference between protected and private?
What does arrays sort do in java?
How does callback work in java?
What is a treeset class?
What are JVM.JRE, J2EE, JNI?
What is treemap in java?
What is difference between local variable and global variable?
Which is bigger double or float?
What are the different types of inheritance in java?
Can we sort array in java?
Can two objects have same hashcode?
What is the size of string?
How do you sort a set in java?
Can we have a try block without catch block?
What are the characteristics of java?