Introduction to Java ☕: A Complete Beginner's Guide in English Version💻✨
Welcome to Java with Suba ! 💙
In this post, we will learn the basics of Java in a simple and beginner-friendly way.
1. What Is Java☕?
⁑Java is a popular,high-level,object-oriented programming language designed to build secure,robust and scalable applications.
⁑It follows the "Write Once,Run Anywhere" (WORA) method.It means that once you write java code,it can run on any platform or operating system (Windows,macOS,Linux) without any modifications.With the help of Java Virtual Machine (JVM).
2. Why Should We Learn Java🗨️?
Learning Java is a great choice because it's beginner-friendly,super powerful,and used everywhere.
Here are some reasons to learn java:
⁑Beginner-Friendly
⁑Widely Used in many companies.
⁑Platform Independent
⁑Strong Community in current period.
⁑A lot of Career Opportunities.
⁑Used in different areas of software development.
3.Where Java Used🤔?
Java is used in many areas of technology.
⁑Web Applications development-commonly used for java backend development.
⁑Enterprise Applications
⁑Mobile Applications
⁑Desktop Applications
⁑Banking and Financial Systems
⁑Cloud and Backend Services
⁑Big Data and Data Processing
4.How Dose Java Works💭?
1.Write the code(source code):You write your java program in a plain text file and save it with a (.java) extension.Example:Main.java
2.Compile the Code(Byte Code): The java compiler (javac) checks your code for errors and translates it into an intermediate form called Bytecode (.class file).The bytecode is not tied to any specific operating system.
3.Run via JVM (Java Vritual Machine): The JVM reads the bytecode and translates it into machine-specific instructions that your computer (Windows,Mac,or Linux) can directly execute.
In short way=> You write once->it converts to bytecode->JVM runs it anywhere!
5.Basic Structure of a Java Program📝:
Let's look at a simple Java program.
public class Hello{
public static void main(String[] args) {
System.out.println("Hello World!");
}
}
Output:
Hello World!
Explanation of the Program:
public class Hello: Declares a class named Hello.
public static void main(String[] args): Defines the main method, which is the entry point for launching this simple Java application.
System.out.println(): Displays a message on the screen.
"Hello World!": The text printed by the program.
This is a simple example to help beginners understand how a Java program is written and executed.
6.Java and JavaScript – Are They the Same?
No. Java and JavaScript are two different programming languages.
Java: Commonly used for backend services, enterprise software, and many other applications.
JavaScript: Widely used to make websites interactive and is also used for server-side development.
Although their names are similar, they have different language designs and uses.
Thank you for visiting Java With Suba💙
Happy Coding!☕💻



Comments
Post a Comment