Sep 12, 2013

Internals Of Java Compiler

Internal mechanism of Compiler in java:Let us describe internals of java compiler.A Java Compiler is the collection of programs which is used to compile the java programs. Java Compiler checks java source code if syntactically correct then generates .class file (bytecode) and save into current working directory else java compiler generates compile time error.
for example-
  javac.exe testprogram.java
 Here javac is used to invoke java compiler and to load the source code from Hard Disk to Ram.

references:
  1. http://javabyvikas.blogspot.com/2013/08/compilation-java-program.html 
  2. http://en.wikipedia.org/wiki/Java_compiler