Starting my Java Full Stack Developer Journey: Day 1

🌟 Day 1 of My Java Full Stack Developer Journey Today marks the beginning of my journey to become a Java Full Stack Developer! 🚀 I’ve started by exploring the fundamentals of Java, understanding what makes it one of the most powerful and widely used programming languages in the world. 1️⃣ What is Java? Java is a high-level, object-oriented, platform-independent programming language developed by James Gosling at Sun Microsystems. Its most famous principle — “Write Once, Run Anywhere” — means that once you write code, it can run on any device that has a Java Virtual Machine (JVM). 2️⃣ JDK, JRE, and JVM Explained ✅ JVM (Java Virtual Machine): The JVM is the heart of Java. It converts compiled bytecode into machine code and executes it. It’s what makes Java programs run the same way on different devices. ✅ JRE (Java Runtime Environment): The JRE provides the libraries and environment required to run Java programs. It includes the JVM and standard class libraries. ✅ JDK (Java Development Kit): The JDK is the complete toolkit for developers. It includes: JRE (to run programs) Compiler (javac) (to compile code) Development tools (for debugging and documentation) In short: 👉 JDK = JRE + Development Tools 👉 JRE = JVM + Libraries 3️⃣ The main() Method Explained Every Java program begins its execution from the main() method: "public static void main(String[] args)" Here’s what each keyword means: public: Accessible from anywhere static: Can run without creating an object void: Does not return any value main: Entry point of the program String[] args: Used to receive command-line arguments Without main(), your Java program has no entry point! 4️⃣ How to Compile and Run a Java Program Steps to compile and run: 👉 Save the file as Classname.java 👉 Open Command Prompt / Terminal 👉 Compile the code: ✨ javac Classname.java → This creates a .class file (bytecode) 👉 Run the code: ✨java Classname 5️⃣ Features of Java ✨ Platform Independent – Runs on any OS ✨ Object-Oriented – Based on real-world concepts like classes and objects ✨ Simple & Secure – Easy syntax and built-in security features ✨ Robust – Strong memory management and exception handling ✨ Multithreaded – Supports concurrent execution ✨ Portable – Same code runs anywhere ✨ High Performance – Uses Just-In-Time (JIT) compiler for efficiency. #Java #Programming #SoftwareDevelopment #Coding #JVM #JDK #TechLearning #Developers #LearningJourney10000 CodersRaviteja T

  • graphical user interface, text, application, chat or text message

To view or add a comment, sign in

Explore content categories