It can be used for anything, really. I think it's greatest value is in Web Development, but not like applets and stuff. Server side applications. Portable, secure, fast, that's what businesses want and that's what Java can do. It works for desktop apps too, for example the vast majority of IDEs I've ever tried are written in Java, I just don't enjoy writing desktop apps all that much.