Java is also known as a language that can be used across platforms. This is mainly because after Java itself is compiled, it does not directly generate executable code, but instead generates an intermediate code called ByteCode. This code must be passed through Java. The interpreter interprets it to be able to actually execute it, so as long as the Java interpreter is installed on the platform, it is possible to interpret the ByteCode and execute the Java compiled program. Therefore, the Java program is on that platform. Compiled, there is no relationship. Programs written in Java can be divided into two categories, namely Java Applets and general applications. The Application class is similar to the general program such as C++, and is an independent executable application, like HotJava. Is a browser and is developed using Java programs. The most common Java programs include applications and applets. Applications are separate programs, such as the HotJava browser software written in the Java language. Applets are similar to applications, but they cannot be run separately. Applets can run in Java-enabled browsers. Applets are mainly built into HTML web pages and play a role in browsing.
The goal of Java is to meet the need to develop software in a network environment full of different kinds of machines and different operating system platforms. With the Java programming language, you can add a variety of dynamic effects to your web pages. You can put an animation, add sounds, and create interactive web pages.