@hafezbe
Java is an object-oriented and class-based programming language that can be run on different platforms by writing a program only once. Codes written in this language are compiled in "javac" environment.
After compilation, a class code is obtained, which needs an interpreter(such as Java Virtual Mach) to run.