Java is both compiled and interpreted language.First Java source code has to be translated into Byte code, which is done with the help of a compiler.But these byte codes are not machine instructions....
The java Compiler compiles the .java file. Like other compiled languages, the Java compiler does not produce machine code designed specifically for a particular type of computer. Instead, it produces...