Java is a general-purpose computer-programming language that is concurrent, class-based, object-oriented, and specifically designed to have as few implementation dependencies as possible. When the program is executed, the java virtual machine interprets the bytecode and translates it into machine code.