Some examples of how Java might not always behave the way you might expect.