Hello Hashnode Family, welcome back to my first article on the Java-basics series. In this blog, we will discover the topics like what is java, features of Java, applications of Java, and write HelloWorld program in Java. Let's get started:
What is Java?
Java is a high-level, class-based, object-oriented programming language. It is a general-purpose programming language intended to let programmers write once, run anywhere (WORA). Java is one of the most popular and widely-used programming language. So, it has 1000's libraries available. Java was originally developed by James Gosling at Sun Microsystems.
Features of java:
Java is
Simple and easy to understand
High-level Programming Language
Platform Independent Language
Write Once Run Anywhere(WORA)
Pure Object-Oriented programming language
Case-sensitive
Applications of Java:
Java is used at:
- Web Applications
- Mobile Applications
- Desktop Applications
- Web servers
- Embedded Systems
Implement HelloWorld program
Create a file with the name HelloWorld.java
// Creata package
package com.hrishi.javaBasics;
// class with HelloWorld
public class HelloWorld {
// main method
public static void main(String[] args) {
System.out.println("Hello World");
//above line prints the output as "Hello World" without quotes
}
}
Thank you for reading my article. Happy coding!!