Did you read what the API for the Graphics class has to say about it?
Graphics (Java Platform SE 6)