Posts

Showing posts from August, 2025

Java Episode 3 – Understanding JDK, JRE & JVM in Simple Desi Style

Image
๐ŸŽฏ Introduction Welcome to Episode 3 of our Java Series at Code Tulika . Today, we’ll dive deep into three terms that confuse most beginners – JDK , JRE , and JVM . Don’t worry, hum ise simple aur desi style me samjhayenge! ๐Ÿ˜„ ๐Ÿ’ก What is JVM (Java Virtual Machine)? The JVM is like a translator that takes your compiled Java bytecode and makes it run on any machine, whether it's Windows, Mac, or Linux. In short, JVM is platform-independent but machine-specific. It executes Java bytecode (.class files). Manages memory via Garbage Collection. Provides security and portability. ๐Ÿ›  What is JRE (Java Runtime Environment)? JRE = JVM + Libraries + Other supporting files . Think of it like a kitchen where all utensils and ingredients are ready, and JVM is the chef . Without JRE, your JVM can't cook (run) your Java programs. Includes JVM and class libraries. Used for running Java applications. Does not contain development tools. ๐Ÿ–ฅ What is ...

๐Ÿ’ป How to Download and Install Java on Mac and Ubuntu – Step-by-Step Guide

How to Download and Install Java on Mac and Ubuntu Java is not just a programming language—it’s the base of many big applications across mobile, web, and enterprise systems. But before we dive into our Java coding journey, let’s first install Java properly. This post will help you install Java (OpenJDK) on: ✅ macOS ✅ Ubuntu (Linux) ๐Ÿ Part 1: Install Java on macOS We’ll use Homebrew , a popular package manager for macOS. ๐Ÿ› ️ Step-by-step instructions: ✅ Step 1: Check if Homebrew is installed brew -v If it’s not installed, run the following: /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" ✅ Step 2: Install OpenJDK brew install openjdk@21 ✅ Step 3: Add Java to your system PATH For zsh users (macOS default shell): echo 'export PATH="/opt/homebrew/opt/openjdk@21/bin:$PATH"' >> ~/.zshrc source ~/.zshrc For bash users : ...