Well programs that you write in Java will be platform independent. Java programs will be able to run on all platforms, as long as the person has Java installed.
To develop Java you will obviously need Java itself to use the programs, but you will also need the
Java SDK (Software Development Kit) and you can get more things aswell like the Swing Library to create windows GUI Apps.