Java is a general-purpose, high-level, class-based programming language. It follows the principle of Write Once, Run Anywhere (WORA). Meaning that, once you write and compile a Java program, you can run it on any other Java-enabled machine without recompiling it. This is because the Java programs are compiled into bytecode that can run on any Java Virtual Machine (JVM). The syntax of Java is closely similar to C and C++. Moreover, it is an object-oriented programming language that follows all four concepts, namely polymorphism, abstraction, encapsulation, and inheritance. However, it is not a pure object-oriented language.