What is java ?
Java is a widely-used programming language for coding web applications. It has been a popular choice among developers for over two decades, with millions of Java applications in use today. Java is a multi-platform, object-oriented, and network-centric language that can be used as a platform in itself. It is a fast, secure, reliable programming language for coding everything from mobile apps and enterprise software to big data applications and server-side technologies.
How to run Java ?
Just create new file as name given below
HelloWorld.java
Next open Command prompt and type below code.
java HelloWorld.java
public class Main {
public static void main(String[] args) {
System.out.println("Hello World");
}
}
Output:-
![](https://www.devopsfreelancer.com/blog/wp-content/uploads/2023/07/image-75.png)