Hi I like to know is JVM open source code? If not then how can I get the code of JVM?
Depends ón what you need, and what you need it for. The source code for the Sun jdk is available ón the jdk download page, but is essentially only for peeking. If you need more than that, please edit your question.
It depends entirely on which JVM you use.
If you use the OpenJDK JVM, then you can get the source code from http://download.java.net/openjdk/jdk7/. If you use the Kaffe JVM, you can get the source from here: http://www.kaffe.org/. If you use the Sun JVM version 6 or later, then you can get the source from here: http://java.sun.com/javase/downloads/index.jsp.
If you use a Sun JVM earlier than 6, then you can often get the source under an academic license. If you use an IBM, Oracle, HP, or other JVM, then the source is not open.
Most of the source for the libraries come with the JDK in the src.zip file. Your IDE will use that automatically. You are much better off being familiar with the classes in these libraries than playing with the JDK itself.