Learn in the textbookTypes of Representative Programming Languages
DefinitionJava is a general-purpose object-oriented language whose programs run unchanged on any machine or OS that provides a Java Virtual Machine (JVM).
ExplanationObject orientation is the idea of bundling data and the operations on it into components called objects, then building programs by combining those components. Java source code is compiled into an intermediate form called bytecode, which the JVM for each OS then executes, so the program itself does not have to be rewritten for each type of machine. A Java program downloaded from a web server and run inside the user's browser is called an applet, but applets are hardly used any more because the major browsers have dropped support for them.
AnalogyIt is like having the same standard plug adapter waiting in every country, so a single appliance works wherever you take it.
Memory hookThe name is said to come from Java, the Indonesian island famous for coffee, and its logo is a coffee cup.