compile java code

view story

http://ubuntuforums.org – Hi! I have a simple question here. I have a java code which I want to see if there's any difference between using Oracle JDK and OpenJDK to compile. I installed both of them on my Ubuntu 12.04. I wonder how would I specify which compiler I want to use while I am trying to compile the code? Meanwhile, I know the way we check the java version is type in "java -version" in cmd, I wonder if there's a way for us to check the version of OpenJDK. Thanks a lot! (Hardware)