🚀 Day 8 of My 90 Days Coding Challenge 🚀 Today, I explored one of the most fundamental topics in Java — Java Architecture! Here’s what I learned: 🔹 JDK, JRE, JVM, and JIT — their roles and how they work together to run Java programs. 🔹 How a Java file is compiled and interpreted to make execution smooth and efficient. 🔹 Why Java is preferred over C, especially for platform independence and portability. 🔹 The reason Java uses both compiler and interpreter, and how this combination ensures better performance and flexibility. 🔹 What makes Java platform-independent — the power of bytecode and the JVM that runs it anywhere! Every concept I study makes me realize how beautifully Java is designed to balance performance, security, and flexibility. #Day8 #Java #CodingChallenge #100DaysOfCode #JavaLearning #DeveloperJourney #TechGrowth
Exploring Java Architecture on Day 8 of Coding Challenge
More Relevant Posts
-
🎬 “You can’t control everything… but you can suggest it.” That’s true for life — and for Java threads too. 😄 In my latest video, I explored how to guide thread execution using thread priority and the sleep() method in Java. 💡 Here’s what we discussed: Understanding thread priorities — from MIN_PRIORITY (1) to MAX_PRIORITY (10) Why setting a high priority doesn’t guarantee faster execution (it’s all up to the scheduler!) Using Thread.sleep() to pause execution and bring synchronized rhythm between threads Real-world analogy: how schedulers decide which thread gets the stage light first This simple experiment of making “Tony” and “Star” dance in sync taught me something deeper — sometimes optimization is about timing, not control. Check out the video here 🎥 👉 https://lnkd.in/gvufSmTj #Java #Multithreading #Threads #Coding #SoftwareEngineering #LearningInPublic
Mastering Thread Priority and Sleep in Java — Control Thread Execution Like a Pro
https://www.youtube.com/
To view or add a comment, sign in
-
Day 9 of Java 50 Days of Code Challenge Imagine you’re checking your contact list — name and number — and you want to print them neatly, one by one. That’s exactly what I learned today: how to loop through a Map in Java. Maps store key–value pairs, and there are different ways to read them. Today I practiced using for-each loops to go through keys, values, and entries. Lesson of the Day: > Looping through a Map feels like flipping through your phonebook — one contact at a time. Next, I’ll explore ArrayLists with user input — to make my programs more dynamic and interactive. #Java #50DaysOfCode #Day9 #LearningJourney #CodingStory #MapIteration #JavaCollections Here’s my little example: Guess the output
To view or add a comment, sign in
-
-
🚀 Wrapping up my mini-series on Java Sealed Classes! Over the last two days, I explored what sealed classes are and how the permits keyword helps control inheritance. Today, let’s put everything together with one complete example — showing how sealed, final, and non-sealed subclasses can work in harmony. 💡 Here’s why I find sealed classes so valuable: - They bring clarity to your codebase — you instantly know all possible subclasses. - They add a layer of security and control, preventing unwanted inheritance. - They make your design cleaner and more maintainable in the long run. - And they work beautifully with pattern matching and switch expressions since the compiler knows every subclass. In short, sealed classes give Java developers the right balance between structure and flexibility — a small feature that makes a big impact on code quality. #Java #Java17 #SealedClasses #CleanCode #ProgrammingTips #OOP #CodeDesign #SoftwareDevelopment #JavaDeveloper
To view or add a comment, sign in
-
-
Day 24 of #50DaysOfCode – Java 💻 Today’s challenge was to check whether a number is an Automorphic Number. An Automorphic Number is a number whose square ends with the same digits as the number itself. Examples: 5 → 25 ✔️ (ends with 5) 76 → 5776 ✔️ (ends with 76) This problem helped me understand digit comparison, modulus operations, and number patterns in Java 🔍✨ #Java #CodingChallenge #50DaysOfCode #LearnToCode #ProgrammingBasics #LogicBuilding #CodeDaily #ProblemSolving #AutomorphicNumber #JavaBeginner
To view or add a comment, sign in
-
Day 20 of #50DaysOfCode – Java Today’s task: Find the sum of all odd digits in a given number! 🔢 A simple yet logical exercise that helps strengthen your understanding of loops, conditionals, and digit manipulation. 💡 👉 This program takes a number as input and calculates the total of its odd digits using a while loop and the modulus operator. #Java #CodingChallenge #50DaysOfCode #LearnToCode #ProgrammingBasics #LogicBuilding #CodeEveryday #JavaProgramming
To view or add a comment, sign in
-
💻 LeetCode 50 Days Challenge — Day 8: Median of Two Sorted Arrays Day 8 of my #LeetCode50DaysChallenge ✅ Today’s problem was about finding the median of two sorted arrays — Median of Two Sorted Arrays ✨ 🧩 Problem: Given two sorted arrays nums1 and nums2, return the median of the two sorted arrays. The challenge was to merge them efficiently and then determine the middle value(s). 💡 Approach: I used Java 8 Streams to merge both arrays in a single line using IntStream.concat(), followed by Arrays.sort() to sort the combined array. Finally, I calculated the median by checking if the array length is even or odd. ⏱️ Time Complexity: O((m + n) log (m + n)) (due to sorting) 📊 Example: Input: nums1 = [1, 2], nums2 = [3, 4] Output: 2.5 Each day, I’m getting more comfortable with cleaner and modern Java techniques like Streams — small steps toward writing concise and efficient code 🚀 #LeetCode #CodingChallenge #Day8 #ProblemSolving #Java #SoftwareDevelopment #Consistency #50DaysOfCode
To view or add a comment, sign in
-
-
𝙍𝙚𝙢𝙚𝙢𝙗𝙚𝙧 𝙞𝙣 𝙥𝙧𝙞𝙢𝙖𝙧𝙮 𝙨𝙘𝙝𝙤𝙤𝙡 𝙬𝙝𝙚𝙣 𝙩𝙝𝙚 𝙩𝙚𝙖𝙘𝙝𝙚𝙧 𝙖𝙨𝙠𝙚𝙙, "𝙒𝙝𝙖𝙩 𝙞𝙨 2 – 3?" It felt impossible. I got that exact same feeling when I first learned about Java Reflection. We were all taught the same sacred rule: encapsulation. private means private. ...Well, almost. Java 𝗥𝗲𝗳𝗹𝗲𝗰𝘁𝗶𝗼𝗻 is the VIP pass to the JVM's backstage. It's a powerful API that lets you inspect and manipulate classes, fields, and methods at runtime. 𝗬𝗲𝘀, 𝗲𝘃𝗲𝗻 𝗽𝗿𝗶𝘃𝗮𝘁𝗲 𝗳𝗶𝗲𝗹𝗱𝘀. One single line of code 𝗳𝗶𝗲𝗹𝗱.𝘀𝗲𝘁𝗔𝗰𝗰𝗲𝘀𝘀𝗶𝗯𝗹𝗲(𝘁𝗿𝘂𝗲) and the encapsulation barrier is 𝗴𝗼𝗻𝗲. This isn't a gadget for everyday code. This is the "magic" that runs our most critical tools: 𝗙𝗿𝗮𝗺𝗲𝘄𝗼𝗿𝗸𝘀: How does Spring manage to inject your @Autowired dependencies? Through 𝗥𝗲𝗳𝗹𝗲𝗰𝘁𝗶𝗼𝗻. 𝗝𝗣𝗔/𝗛𝗶𝗯𝗲𝗿𝗻𝗮𝘁𝗲: How does data from the database end up in your private fields? 𝗥𝗲𝗳𝗹𝗲𝗰𝘁𝗶𝗼𝗻. 𝗦𝗲𝗿𝗶𝗮𝗹𝗶𝘇𝗮𝘁𝗶𝗼𝗻: How do Jackson & Gson turn a JSON string into a Java object? You guessed it... 𝗥𝗲𝗳𝗹𝗲𝗰𝘁𝗶𝗼𝗻. It's slower, it can open up security holes, and it breaks the very encapsulation we work so hard to respect. But you can't truly understand the modern Java ecosystem without understanding this powerful mechanism at the heart of it all. #Java #JavaDevelopment #SoftwareEngineering #SpringBoot #Programming #Tech #OOP #Reflection
To view or add a comment, sign in
-
-
💡 Why char Occupies 2 Bytes in Java but 1 Byte in C💡 Many learners get confused about why char takes 2 bytes in Java while it takes only 1 byte in C. Let’s understand it simply ⚙️ In C (1 Byte) 🔸C is a low-level, hardware-oriented language. 🔸The size of char in C is defined as 1 byte, which is typically 8 bits on modern systems. 🔸C was created when systems mainly used ASCII, so one byte (0–255) was enough to represent characters. The exact number of bits per char may vary depending on the system (for example, 8, 9, or even 16 in rare architectures). ☕ In Java (2 Bytes) 🔸Java was designed with Unicode (UTF-16) support to handle multiple languages and symbols worldwide 🌍. 🔸Hence, every char in Java occupies 16 bits (2 bytes) — enough to represent most Unicode characters. 🔸Java ensures portability — meaning a character uses the same memory size on every platform. ✨ In Short 🔸Java → 2 Bytes for global Unicode 🌏 🔸C → 1 Byte for hardware efficiency ⚙️ 🔸Java focuses on portability and internationalization, 🔸C focuses on speed and direct hardware control 💻 📘 Conclusion Both languages made the right choice for their time and purpose. 🔸Java wanted “write once, run anywhere” 🌐 🔸C wanted “run fast, close to the machine” ⚡ #Java #C #Programming #Coding #Unicode #JVM #LearnToCode #CodeSmart #ComputerScience #Codegnan Thanks to my mentor Anand Kumar Buddarapu Saketh Kallepu Uppugundla Sairam
To view or add a comment, sign in
-
-
Understanding the Heart of Every Java Program — public static void main(String[] args) If you’ve ever written a Java program, you’ve definitely seen this line. But do you really know what each part means? 1️⃣ public — Accessible from anywhere. This allows the JVM (Java Virtual Machine) to access the method from outside the class. 2️⃣ static — Belongs to the class. It can be run without creating an object of the class. 3️⃣ void — No return value. This method doesn’t return anything to the JVM. 4️⃣ main — The program’s entry point. Execution starts here! It’s the launching pad for your Java rocket. 5️⃣ String args — Command-line inputs. Used to pass external arguments into the program during execution. Whenever you write a new Java program, remember — public static void main(String[] args) is where your journey begins #Java #Programming #Coding #LearnJava #SoftwareEngineering #CodeNewbie #DeveloperCommunity #OOP #JavaProgramming #SoftwareDevelopment #CodingForBeginners #ProgrammersLife #ComputerScience #BackendDevelopment #TechLearning #CodeWithMe
To view or add a comment, sign in
-
-
🌟 Day 22 of #JavaLearning 🌟 Today, I solved ArrayList practice problems covering beginner to advanced topics. 💡 ArrayList in Java: It is a predefined class introduced in Java 1.2. Part of the java.util package. Allows null values. Duplicate values are allowed. Insertion order is maintained. I practiced operations like: Adding, accessing, updating, and removing elements Sorting, reversing, and merging lists Finding max/min, frequency, and duplicates Converting between arrays and ArrayLists Retaining common elements and filtering with conditions 10000 Coders #Java #Collections #ArrayList #100DaysOfCoding #Day22
To view or add a comment, sign in
More from this author
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