Java (programming language)![]() Java is the name of a programming language created by Sun Microsystems. This company was bought out by Oracle Corporation, which continues to keep it up to date. It is designed to be platform-independent, which means that code written in Java can run on any device or operating system that has a Java Virtual Machine (JVM) installed. This makes Java a popular choice for developing cross-platform applications and games. Additionally, Java has a large and active community, and a wide range of libraries and frameworks available for use.[1] As of March 2023[update], Java 20 is the latest version (will be supported until September 2023), while Java 17, 11 and 8 are the current long-term support (LTS) versions. Being an LTS version means that it will continue getting updates for multiple years. The next planned LTS version is Java 21 (LTS), planned for September 2023.[2] Being an open-source platform, Java isn't just supported by Oracle, e.g. Eclipse Adoptium also supports Java (JVM), to at least May 2026 for Java 8, and at least September 2027 for Java 17. Java, which was called Oak when it was still being developed, is object oriented, meaning it is based on objects that work together to make programs do their jobs. Java code looks similar to C, C++, or C#, but code written in those languages will not work in Java in most cases without being changed.[3] Java runs on many different operating systems, including Android, the world's most popular mobile operating system[4] (while Java continues to be used on Android, even by its maker Google, they no longer prefer Java; now Kotlin is their preferred language, though it can also be used with all Java code). This makes Java platform independent. It does this by making the Java compiler turn code into Java bytecode instead of machine code. This means that when the program is executed, a Java Virtual Machine interprets (or just-in-time compiles) the bytecode.[5] Java is both a language, but its also a platform, and a number of languages compile to the same bytecode meant for that JVM platform, and can then work alone (without Java, the language, or with it). Google, that previously recommended Java, now recommends Kotlin language over Java for its Android platform, and it, like any JVM language, can also work with or without Java in all other contexts where Java alone would have been used.
Java conceptsJava was developed to achieve five main goals. These are:[8][9][10]
Java platformThe Java platform refers to a group of software products from Sun Microsystems. The platform is used to develop and run Java programs. The platform includes the execution engine (called a Java Virtual Machine) that allows Java programs to do the same thing on different computer systems. This capability of being able to develop software on one platform and running it on other platforms is called "cross-platform capability". There are many resources available for learning Java programming, including books, tutorials, and online courses.[11] Programming exampleAn example of a "Hello World" Java program: // This is a simple program in Java. It shows "Hello World!" on the screen.
public class HelloWorld {
public static void main(String[] args) {
System.out.println("Hello World!");
}
}
Types of Java programsThere are many types of Java programs which run differently:
BenefitsJava is commonly used to teach students how to program as a first language, but is still also used by professionals.
CriticismJava has also been criticized. Some of the criticisms are:
References
Other websites |
Portal di Ensiklopedia Dunia