What is Java?
Java is a popular and powerful programming language, created in 1995.
It is owned by Oracle, and more than 3 billion devices run Java.
where is it used?
- Desktop applications & Mobile applications (specially Android apps)
- Web applications, Web servers and application servers
- Database connection
- Games & much more.
why is it popular?
Java is one of the most popular programming languages in the world. Java works on different platforms (Windows, Mac, Linux, Raspberry Pi, etc.).
It is secure, fast and powerful and also open-source and free. As Java is close to C++ and C#, it makes it easy for programmers to switch to Java.
Code example: “Hello, World!”
// My first Java program
public class HelloWorld {
public static void main(String[] args) {
System.out.println(“Hello, World!”);
}
}
Output:
Hello, World!
Code Explanation:
- public class HelloWorld declares a class named HelloWorld. All Java code resides inside classes.
- public static void main(String[] args) is the main method, the entry point for every Java application.
- System.out.println() prints a line of text to the console.

