A farly good explination..

http://java.sun.com/docs/books/tutorial/java/javaOO/nested.html