This post probably belongs in 'java in general beginner'.
Java is platform independent since the class is in byte code and the JVMs are implemented independently to read the same byte code in various operating systems. So you can compile a java program in windows and run it linux without the need for any specific change.
I would suggest the head first java book or the
SCJP study guide to get you up to speed in java. Good luck