Java Basics
Java is platform independent, which means that you can create a program once and have it run on a variety of different systems!
Java is a portable, powerful, and dynamic programming language that can be used to develop practically any kind of application.
Java is installed on about 3 billion devices.
Moreover, this high-level programming language is used to create applications for Google's Android operating system, as well as a variety of desktop applications such as media players, antivirus programs, web applications, and enterprise applications (such as banking).
Code Input:
![](https://static.wixstatic.com/media/a03132_9ee524d0cb3c4d7ca374a9fce4ec7b38~mv2.png/v1/fill/w_531,h_143,al_c,q_85,usm_0.66_1.00_0.01,enc_avif,quality_auto/a03132_9ee524d0cb3c4d7ca374a9fce4ec7b38~mv2.png)
Code Output:
![](https://static.wixstatic.com/media/a03132_61273c20e5954b3b8f4c4bc1688da826~mv2.png/v1/fill/w_186,h_97,al_c,q_85,enc_avif,quality_auto/a03132_61273c20e5954b3b8f4c4bc1688da826~mv2.png)
Each line of code that may be executed must be included within a class in Java.
In the example, the class is called MyClass.
Each Java application has an entrance point, or starting point, which is represented by the main method. Along with the term "main," the terms "public" and "static."