posted 14 years ago
Inner classes are used for situations where an object can not exists without another object. For instance a Map has Map.Entries (both interfaces but for this example you can view them as classes). The Map.Entry cannot exists without a Map. It has no purpose to live without it. Therefor it's made an inner interface.
"Any fool can write code that a computer can understand. Good programmers write code that humans can understand." --- Martin Fowler
Please correct my English.