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 are annotations in java?
Define nashorn in java8.
What is class array in java?
Can we able to pass objects as an arguments in java?
Explain wait(), notify() and notifyall() methods of object class ?
Why do we need wrapper classes?
What are basic keywords?
What are white spaces in java?
Is java 9 released?
Can a private method be declared as static?
What are the three parts of a lambda expression?
Why is an interface be able to extend more than one interface but a class can’t extend more than one class?
What does s mean in regex?
Differentiate jar and war files?
Can a static class implement an interface?