The Java programming model is way different from the traditional programming model. The java programming model is designed to make the language machine-independent.
Java programming Model:
Source Code ----> Bytecode ----> JVM
Source code: It is a basic code you write in java IDE.
Bytecode: It is a machine-independent code. This bytecode file helps to run the code on any operating system.
JVM: It converts the bytecode for the machine in which it is running.
In the traditional approach, the source code is directly converted into the native code. That's why it is machine-dependent.