I think Java is worth the time learning. It was the first programming language I learned (well, that's a lie; I learned the basics BASIC and Python beforehand), and despite what most say about it being hard to learn, I found it very easy to pick up. Sure, it can't be used to code hacks, but it is still a massively popular and widely powerful programming language. I've programmed a simple text based game in Java. It's also useful in the fact that you can make applets, which, if you know HTML well enough, can be put on a web page.