What is difference between JDK, JRE and JVM ?

JDK JRE JVM JDK stands for Java Development Kit. JRE stands for Java Runtime Environment. JVM stands for Java Virtual Machine. It is required to compile, document and package Java programs. JRE refers to a runtime environment in which java bytecode can be executed. It is an abstract machine. It is a specification that provides …

Why Java is platform independent?

Platform independent practically means write once run anywhere. Java is called platform independent because Java is compiled to be a byte code which is the intermediate language between source code and machine code. This byte code is not platform specific and hence can be fed to any platform, with any operating system.