I am very new to Java language. I want to know that after the compilation of any *.java program,We get *.class file. Then we execute this class file using the tool "java classfilename".
Now I want to know what actually happens intenally.
You mean, how the Java Virtual Machine (JVM) interprets and/or compiles the class file into a running program? Head over to java.sun.com and search for "JVM"; that will bring up some articles and links that will get you started. If you are REALLY interested in the JVM, you might even study the JVM specification (also on java.sun.com).
For my next feat, I will require a volunteer from the audience! Perhaps this tiny ad?
a bit of art, as a gift, that will fit in a stocking