You are on page 1of 1

Disadvantages are: There is no compile time type checking and actual issues might come up during ru n time.

Compile time code optimizations are not possible. The code will run slower as it is converted to machine language while executing. Java combines most of the advantages of compiled and interpreted languages. Java is interpreted at run time rather than compiled like C/C++. But it also perfor ms various compile-time and run-time checking operations unlike other interprete d languages. The source files (.java files where we write our code) in Java are first compiled into an architecture neutral output format known as bytecode and stored in a .class file. These .class files are loaded and interpreted by a plat form specific interpreter called Java Virtual Machine (JVM). The Java byte code is the same on every platform, but JVMs are specific to platforms like windows, linux etc and these JVMs know how to transform these bytecodes into platform spe cific machine language while executing. Hence Java applications (classes) are pl atform independent, but remember JVM is not platform independent.

You might also like