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 parsers? Dom vs sax parser.
How do generics work in java?
How we can make copy of a java object?
Can we use different return types for methods when overridden?
Does printwriter create a file?
How to implement an arraylist in java?
Which method you will use to create a new file to store some log data. Each time a new log entry is necessary, write string to the file in java ?
What is nextline method in java?
What is purpose of keyword void?
Describe the term diamond problem.
What do you understand by private, protected and public?
What are three ways in which a thread can enter the waiting state in java programming?
What are green threads in java?
What is the purpose of object oriented programming?
Explain the pointers in Java?