🚀 Day 8 of My Core Java Journey Today I learned about Loops & Jump Statements in Java, which are fundamental for controlling iterations and repeating tasks in programs. 🔁 Loops Covered: ➤ While Loop – Check first, then execute ➤ Do-While Loop – Execute first, then check (runs at least once, useful in menu-driven programs) ➤ For Loop – All-in-one powerful loop for initialization, condition, and update 🔄 Also explored: ✔ Nested loops and how iterations grow (n × m pattern) ✔ How loops control execution flow step by step ⚡ Jump Statements: ➤ break → stops the loop immediately ➤ continue → skips the current iteration 💡 Bonus Learning: • We can use labeled loops (outer, inner) for better control in nested loops • Understanding loop flow makes it easier to optimize logic and avoid unnecessary iterations This topic made it clear how programs handle repetition and control flow efficiently. Grateful to Rohit Negi sir, Aditya Tandon sir, and the Coder Army youtube channel for such clear explanations 🙌 Building strong Core Java fundamentals step by step 💻 #Java #CoreJava #JavaDeveloper #Programming #Loops #LearningJourney #CoderArmy
Java Loops and Jump Statements Explained
More Relevant Posts
-
Day 38 of Learning Java Today, I explored how a class executes inside the JVM (Java Virtual Machine). Understanding this lifecycle really helped me see what happens behind the scenes when we run a Java program. 🔹 Class Loading • The JVM loads the class into memory • It brings the ".class" file into the system 🔹 Linking Phase • Verification → Checks bytecode for errors • Preparation → Allocates memory for static variables (default values like 0) • Resolution → Replaces symbolic references with actual memory references 🔹 Initialization • Static variables get their actual assigned values • Static blocks are executed 🔹 Execution • Methods start running and the program logic is executed 🔹 Destruction • Objects are destroyed and memory is cleaned up by the Garbage Collector Static variables first get default values during preparation, and later their actual values during initialization. Thanks to my mentor Ashim Prem Mahto for the clear explanations and for always clearing my doubts. #Java #JVM #LearningJourney #Programming #SoftwareDevelopment #BackendDevelopment #CodingLife #JavaDeveloper #TechLearning #StudentLife
To view or add a comment, sign in
-
-
💻 Day 19 of My Java Journey Today I explored Generics, and it made Java feel much cleaner. Instead of writing separate code for different data types, generics allow us to write one reusable piece of code. Using <T> as a placeholder, we can handle multiple data types safely without worrying about runtime errors. This is one of those concepts that improves both code quality and flexibility. Learning something new every day 🚀 #Java #Programming #LearningInPublic #CodingJourney
To view or add a comment, sign in
-
-
#Day_13 of My Java Learning Journey – Writing Functions in Java Today I practiced how to create functions (methods) in Java, and I built a simple program to check whether a number is Even or Odd. 🔥 What I learned today: ✔ How to create a boolean function ✔ How to use if-else conditions inside a method ✔ How to return true/false ✔ How to call a method inside the main() function ✔ How to print the result in the console 🧩 Example I worked on: I created a method IfEven(int a) that: Prints whether the number is Even or Odd Returns a boolean value (true for even, false for odd) This helped me understand functions more clearly and how they improve code structure and reusability. #Java #LearningJourney #100DaysOfCode #Coding #Developer #JavaBeginners #OOP #CodeNewbie
To view or add a comment, sign in
-
-
Today I strengthened my understanding of how Java programs actually execute 🚀☕ Here’s what I learned step by step: ✔ The file name must match the public class name 📄 ✔ The main() method can be inside any class, not only the public class 🔍 ✔ Only one public class is allowed in one ".java" file ⚠️ ✔ Protected members outside the package are accessible through inheritance — 🔹 Non-static → accessed using child class object 🔹 Static → accessed using child class name or parent class name inside child class 👨👦✨ ✔ The JVM first loads the class that contains main(), then loads other required classes when needed 🧠 Understanding these core execution rules is helping me build stronger clarity in Java inheritance and access modifiers 💻📚 #Java #Programming #LearningJourney #OOP #JavaDeveloper #BackendDevelopment 🚀
To view or add a comment, sign in
-
Day 55-What I Learned In a Day (JAVA) Today, I learned how to create and use constructors in Java. 🔹 A constructor is a special method used to initialize an object when it is created. 🔹 Constructors are non-static by default, meaning they work with objects and help assign values to instance variables. 🔹 They are automatically executed when an object is created, making object initialization simple and efficient. 🔹 This reduces the need for setting values manually after object creation. Understanding constructors helped me see how Java initializes objects in a structured and efficient way. #Java #OOP #Constructors #LearningJourney #Programming #TechSkills
To view or add a comment, sign in
-
✨ I’m happy to share that today I learned the core concepts of Object-Oriented Programming (OOPs) in Java by implementing 🚀OOPs Pillars Explained in a Single Program practical way by implementing all concepts in a single Java program. 📌 OOPs Pillars: 🔹 Encapsulation Binding data (variables) and methods into a single unit (class) and restricting direct access using access modifiers. 🔹 Inheritance Acquiring properties and behaviors from one class to another using the “extends” keyword. Helps in code reusability. 🔹 Polymorphism One method, multiple behaviors. Achieved using method overloading and method overriding. 🔹 Abstraction Hiding implementation details and showing only essential features using abstract classes and interfaces. 📌 Key Understanding: Instead of learning concepts individually, implementing all OOPs pillars in one program gives a clear picture of how they work together in real-world applications. 💡 This is the core foundation of Java and essential for building scalable applications. #CoreJava #OOPsConcepts #JavaLearning #Programming #TapAcademy #LearningJourney #DeveloperSkills
To view or add a comment, sign in
-
-
🚀 Day 1 of my Java journey! Today I spent 4 hours learning Java from scratch, and here's what I covered: ✅ How Java works (JVM, compile once, run anywhere) ✅ Setting up my development environment ✅ Variables — int, double, String, boolean ✅ Reading user input with Scanner ✅ Arithmetic operators ✅ String methods ✅ If/else logic and decision making ✅ Random numbers Java is a powerful, in-demand language for backend development and I am committed to learning it every day to become a Java developer. 💪 This is Day 1 of many. If you are on a similar journey or can share advice, please connect with me! 🙏 #Java #JavaDeveloper #100DaysOfCode #LearningToCode #Coding #Programming #TechCareer #BackendDevelopment
To view or add a comment, sign in
-
Day 56-What I Learned In a Day (JAVA) Today I learned an important concept in Java - how to access non-static members, both within the same class and across different classes, along with the concept of code reusability. Accessing Non-Static Members within the Same Class Non-static members belong to an object, so they can be accessed directly inside non-static methods. Key point: No object creation is needed when accessing inside the same class’s non-static method. Accessing Non-Static Members from Another Class To access non-static members from a different class, we must create an object of that class. Example: ClassName obj = new ClassName(); obj.methodName(); This allows us to call methods and use variables defined in another class. Code Reusability One of the biggest advantages I understood today is code reusability. Instead of writing the same logic again: • We create a method once • Reuse it in multiple classes using objects This reduces: • Code duplication • Errors • Development time #Java #OOP #CodeReusability #Programming #LearningJourney #DeveloperLife
To view or add a comment, sign in
-
-
Day 2 of Learning Java : Today I started my journey into Java programming which is taught by Aditya Tandon Sir. Here are the key concepts I learned today: JVM, JRE, JDK. •JVM:- (Java Virtual Machine) When you write Java code, it doesn't get turned directly into machine code (0s and 1s). The compiler turns your code into an intermediate format called Bytecode. The JVM takes that Bytecode and executes it on your specific device •JRE (Java Runtime Environment): JVM + Libraries. This is what an end-user needs to install to run a Java app on their computer. •JDK (Java Development Kit) The "Super-set." If you are writing code, you need the JDK. It contains the compiler (javac), the debugger, and the JRE. It transforms your human-readable .java files into .class bytecode. This is just the beginning. Excited to continue this journey Special thanks to Rohit Negi bhaiya & Aditya Tandon Sir. #Day2 #Java #Coding #Learning #Consistency
To view or add a comment, sign in
-
-
📘 Day 41 of My Learning Journey Today, I explored two important methods from the java.lang package: getClass() and toString(). 🔹 getClass() Method This method is used to get the runtime class of an object. It helps in understanding the exact class an object belongs to during execution. 🔹 toString() Method This method converts an object into a readable string format. By default, it returns the class name along with the hashcode, but it can be overridden to display meaningful information. 💡 Learning these methods helped me understand how Java represents objects internally and how we can customize their output for better readability. Step by step, improving my understanding of core Java concepts! 🚀 #Java #LearningJourney #Day41 #OOP #Programming #TechSkills
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