Showing posts with label Java. Show all posts
Showing posts with label Java. Show all posts

August 15, 2014

Java SE UML diagrams

Some useful basic UML diagrams about the Java SE API classes. Created with PlantUML. (See more excellent UML diagrams about the collections in this blog entry.)

February 23, 2014

Date and Calendar Members Are Modifiable


The Date and Calendar classes are mutable classes. If you use them as a class variable and return them via accessor methods ("getters"), the client class can modify them, even if they are private members.

February 15, 2014

HashMap vs. equals()


You might face exam questions asking what happens when adding certain objects to a map. For this you have to understand what the equals() and hashCode() methods do, what is the contract of the Map collection and how its widely used implementation HashMap works.