You can do quite a lot. Java covers just about every aspect of what you'd find in a computer system
There's the essential stuff that are used to create the program, applets can be created to run within web browsers, networking, security, software component plugins, object serialisation and database connectivity.
And Android is based on Java, too, so you've got that whole mobile platform available.