Why Java is both compiled and interpreted language?

In case of C/C++, the source code is directly converted to binary code by the compiler that can be executed by the OS to get output. This binary code generated on one OS does not execute on other OS. That is, the binary code generated on UNIX machine must be executed on UNIX only and …

Why Java is both compiled and interpreted language? Read More »