Day 20 of sharing what I’ve learned 🚀 Difference between JVM and JRE in Java ☕ When I started Java, I used JVM and JRE interchangeably 😅 Turns out — they solve very different problems 👇 🔹 JVM (Java Virtual Machine) The engine that actually runs Java programs. Executes bytecode (.class files) Converts bytecode into machine-specific instructions Handles memory management, garbage collection, and runtime execution Makes Java platform-independent 👉 JVM = Runs the Java program 🔹 JRE (Java Runtime Environment) The environment needed to run Java applications. Includes JVM Includes core libraries & supporting files Required if you only want to run Java programs (not develop them) 👉 JRE = Provides everything needed to run Java 🧠 Simple way to remember: JVM → Executes the program JRE → Provides the runtime environment (JVM + libraries) #Java #Programming #SoftwareDevelopment #BackendDevelopment #Coding #CSFundamentals #Day20 Grateful for the guidance from Sharath R, Harshit T, TAP Academy
Java JVM vs JRE: What's the Difference
More Relevant Posts
-
#Day11 of learning Java from Aditya Tandon Today I learned Functions in Java ➤ Functions = reusable block of code ➤ return type + method name + parameters ➤ Arguments vs Parameters Types: ✔ No I/P, No O/P ✔ I/P, No O/P ✔ No I/P, O/P ✔ I/P, O/P Also explored: ➤ Function Overloading (same name, different parameters) ➤ Chaining of functions ➤ Recursion (function calling itself with base case) Functions make code modular & powerful. CoderArmy Aditya Tandon
To view or add a comment, sign in
-
-
🚀 50 Days of Java – Day 39 🚀 Continuing my #50DaysOfJava journey by learning and implementing Circular Queue using Array in Java 💻 📘 What I covered today: • Implemented Circular Queue using Array • Understood efficient memory utilization compared to Linear Queue • Learned circular increment using modulo operation • Performed queue operations: "enqueue", "dequeue", and "peek" Circular Queue helps overcome the limitations of linear queues by reusing empty spaces efficiently. Sharing my daily learning and code to stay consistent 🚀 🔗 GitHub repo: (https://lnkd.in/gY4QQiFk) Consistently building strong Data Structure concepts 💪 #Java #50DaysOfJava #Day39 #CircularQueue #Queue #DataStructures #DSA #LearningInPublic #CodingJourney #bca #student
To view or add a comment, sign in
-
🚀 50 Days of Java – Day 38 🚀 Continuing my #50DaysOfJava journey by implementing Queue using Array (Linear Queue) in Java 💻 📘 What I covered today: • Implemented Linear Queue using Array • Understood FIFO (First In, First Out) concept • Performed queue operations: "enqueue", "dequeue", and "peek" • Learned conditions for queue overflow and underflow Implementing Queue from scratch helped me understand how data flows sequentially and how memory is managed internally. Sharing my daily learning and code to stay consistent 🚀 🔗 GitHub repo: (https://lnkd.in/g-g5rVyM) Step by step strengthening my DSA concepts 💪 #Java #50DaysOfJava #Day38 #Queue #LinearQueue #DataStructures #DSA #LearningInPublic #CodingJourney #Bca #Student
To view or add a comment, sign in
-
#Day13 of learning Java from Aditya Tandon CoderArmy Constructors in Java ➤ Special method used to initialize objects ➤ Automatically called when object is created ➤ Types: Default & Parameterized Also explored: ➤ Constructor Overloading ➤ Constructor Chaining using this() ➤ Constructors cannot be called manually Objects get memory in Heap, and if memory is not available → Runtime Exception.
To view or add a comment, sign in
-
-
📘 Day 16 of My Java Learning Journey Today, I revised Arrays in Java in more detail to strengthen my fundamentals. What is an Array? An array is a data structure that stores multiple values of the same data type under a single variable name. Instead of creating many separate variables, we can store all values in one array. Arrays 🔹 Regular Array – Equal number of columns (rectangular array) 🔹 Jagged Array – Unequal number of columns Syntax to Declare an Array data_type[] array_name; 📦 Types of Arrays 1️⃣ 1D Array – Single list int[] a = new int[5]; a[0] = 10; 2️⃣ 2D Array – Rows & columns int[][] a = new int[2][3]; a[1][2] = 30; 3️⃣ 3D Array – Multiple blocks int[][][] a = new int[2][3][4]; a[1][0][2] = 50; #Day16 #Java #Arrays #ProgrammingBasics #CodingJourney #LearningJava@Tap academy
To view or add a comment, sign in
-
-
📘 Learning Java Core Concepts – Day by Day 🚀 Today I spent time understanding some important Java fundamentals that explain how programs actually work in memory. 🔹 Program vs Process A program stored in hard disk becomes a process when it is loaded into RAM Multiple programs can run at the same time in memory 🔹 Java Runtime Environment (JRE) JRE is the small memory region allocated in RAM where Java programs execute JRE is divided into: Code Segment Stack Segment Static Segment Heap Segment 🔹 Variables in Java Instance Variables Created inside a class Stored in the Heap segment Get default values automatically Local Variables Created inside methods Stored in the Stack segment Must be initialized before use (no default values) 🔹 Memory Understanding Objects are created in the Heap Reference variables are stored in the Stack Default values depend on data types This learning helped me clearly understand memory allocation, variable behavior, and Java execution flow 💡 Step by step, building strong foundations 💪 #Java #CoreJava #LearningJourney #ProgrammingBasics #JavaMemory #StudentLearning #Consistency TAP Academy
To view or add a comment, sign in
-
-
Day 14 of My Java Learning Journey 🚀 Today, I explored an important concept in Java: Pass by Value and Pass by Reference, which plays a key role in understanding how data is handled during method calls. 🔹 Pass by Value A copy of the variable’s value is passed to another variable or method Any changes made to the copied value do not affect the original variable Commonly seen with primitive data types 📌 Example: Changing one variable does not impact the original value since only the copy is modified. 🔹 Pass by Reference The reference (address) of an object is passed Multiple references can point to the same object in memory Changes made using one reference affect the original object Common with objects and class types 📌 Example: When two reference variables point to the same object, modifying the object using one reference reflects through the other. 🔹 Key Learning ✔ Java always uses pass by value, but for objects, the value passed is the reference, which is why object data can be modified ✔ Understanding this avoids confusion while working with methods, objects, and memory This topic helped me clearly understand how Java handles data internally and how reference sharing works in real programs. 📈 Consistent learning, one concept at a time. #Day14 #Java #CoreJava #PassByValue #PassByReference #ProgrammingConcepts #JavaDeveloper #LearningJourney
To view or add a comment, sign in
-
-
#Day08 of learning Java from Aditya Tandon CoderArmy Today I learned Loops & Jump Statements in Java Loops: ➤ for ➤ while ➤ do-while do-while runs at least once (useful in menu-based programs) Jump statements: ➤ break → stops the loop ➤ continue → skips current iteration These help control program flow efficiently. Loops are the backbone of logic building. 🚀
To view or add a comment, sign in
-
-
🚀 Day-11 Java – Understanding Pass By Value & Pass By Reference Today’s session helped me clearly understand one of the most important memory concepts in Java. 🔹 Primitive data types follow Pass By Value → Only the value is copied → Changes don’t affect the original variable 🔹 Objects work with References → Multiple references can point to the same object → Changes through one reference reflect everywhere Understanding how memory works internally makes a huge difference in writing bug-free and optimized code. This concept is foundational for: ✔ Object-Oriented Programming ✔ Collections Framework ✔ Advanced Java concepts Consistent practice is the key to mastering these fundamentals 💻🔥 #Java #CoreJava #OOPS #Programming #SoftwareDevelopment #LearningJourney #Day11 #JavaDeveloper #TechGrowth TAP Academy Harshit T Sharath R
To view or add a comment, sign in
-
-
This is how I come up with stream coding questions: 1. I have CHATGPT generate intermediate and advanced steam problems. 2. I used java stream past interview questions.. I try to make the questions a combination of collections, generics, wrapper types and primitive.
Java | Apache Kafka | Enterprise solutions | Core banking technologies(Finacle, Oracle flexcube, Apache fineract) | Distributed systems
Concluding my learning on Java stream api with stream parallelism. Covered intermediate to advance stream concept. Solved more than 20 stream problems and counting. Currently making a deep dive in collection framework. https://lnkd.in/dWUQhHuh
To view or add a comment, sign in
Explore content categories
- Career
- Productivity
- Finance
- Soft Skills & Emotional Intelligence
- Project Management
- Education
- Technology
- Leadership
- Ecommerce
- User Experience
- Recruitment & HR
- Customer Experience
- Real Estate
- Marketing
- Sales
- Retail & Merchandising
- Science
- Supply Chain Management
- Future Of Work
- Consulting
- Writing
- Economics
- Artificial Intelligence
- Employee Experience
- Workplace Trends
- Fundraising
- Networking
- Corporate Social Responsibility
- Negotiation
- Communication
- Engineering
- Hospitality & Tourism
- Business Strategy
- Change Management
- Organizational Culture
- Design
- Innovation
- Event Planning
- Training & Development