Is Java a good language to use for programming games?

I want to learn how to program games and I heard that Java is a good language to use in order to do this. I'm not really sure if this is true, so can anyone give me the pros and cons of using this programming language in creating video games?
