🚀 Day 45 /180 – Java Full Stack Journey 🚀 Today, I learned about the do-while loop and explored the use cases of the while loop in Java. 💻 🔹 While Loop Syntax: while (condition) { // code to be executed } ✅ The while loop checks the condition before executing the block of code. It’s commonly used when the number of iterations isn’t known in advance. 🔹 Do-While Loop Syntax: do { // code to be executed } while (condition); ✅ The do-while loop executes the block at least once, even if the condition is false. It’s useful when you want your code to run first and check the condition later. 💡 Practical Task: I also worked on a “Decimal to Binary Conversion” program using the while loop — a great way to strengthen logic-building and looping concepts in Java. 🔢 Learning every day is taking me one step closer to becoming a proficient Java Full Stack Developer! 💪 #Java #JavaProgramming #FullStackDevelopment #JavaDeveloper #CodingJourney #Programmer #SoftwareDevelopment #SoftwareEngineer #DeveloperCommunity #LearningToCode #DoWhileLoop #WhileLoop #CodeNewbie #TechJourney #WomenInTech #100DaysOfCode #CodeLife #CodingIsFun #LogicBuilding #ProgrammersLife #LearnCoding #TechSkills #BackendDevelopment #FrontendDevelopment #CodeDaily #ProgrammingCommunity #StudentsWhoCode #Developers #CodingMotivation #BuildInPublic
More Relevant Posts
-
🌟 Day 55/180 – Java Full Stack Development 🌟 📘 Topic: Why Multiple Inheritance is Not Possible in Java 🔹 1️⃣ What I Learned Today: I learned that multiple inheritance is not possible in Java using classes because it causes a problem called the Diamond Problem. 🔹 2️⃣ What is Multiple Inheritance? It means a child class inherits from two parent classes at the same time. Example: class A {} class B {} class C extends A, B {} // ❌ Not allowed in Java 🔹 3️⃣ The Diamond Problem (The Real Reason): Imagine this situation 👇 Class A has a method show(). Classes B and C both extend A and override show(). Now Class D tries to extend both B and C. When we call show() from D, Java gets confused — 👉 “Should I call show() from B or from C?” This ambiguity is called the Diamond Problem 💎 🔹 4️⃣ Why Java Avoids It: To keep the language simple, clear, and unambiguous, Java designers disallowed multiple inheritance using classes. 🔹 5️⃣ Then How to Achieve It? ✅ Using Interfaces! Interfaces only have method declarations (no implementation), so even if multiple interfaces have the same method, the child class defines its own version — no confusion! 😎 Example: interface A { void show(); } interface B { void show(); } class C implements A, B { public void show() { System.out.println("Hello from C!"); } } 💡 Key Takeaways: Multiple inheritance ❌ not possible using classes. Diamond Problem 💎 causes ambiguity. Interfaces ✅ solve the problem. Java keeps it clean, simple, and safe. #Day55Of180 #JavaFullStack #JavaLearning #OOPsConcepts #InheritanceInJava #DiamondProblem #JavaProgrammer #LearnJava #JavaDeveloper #JavaCode #CodingJourney #FullStackDeveloper #CodeNewbie #ProgrammersLife #100DaysOfCode #TechLearning #DeveloperCommunity #WomenInTech #CodingMotivation #SoftwareEngineer #CodeDaily #BackendDeveloper #ProgrammingLife #CodeWithMe #LearnToCode #CodingIsFun #TechJourney #StudyWithMe #ITCareer #JavaConcepts
To view or add a comment, sign in
-
-
Day 2 of java fullstack development.... Hello everyone 🖐🏻 ......... Today we are started looping concepts in java, the loop statements are 4 types they are 1. for ----- Used when you know exactly how many times you want to repeat a block of code. 2. while ----- Used when you don’t know how many times the loop should run — continues until the condition becomes false. 3. do while ----- Similar to the while loop, but the block of code executes at least once, even if the condition is false (because condition is checked after execution). 4.for each ----- Used for iterating over arrays or collections (like ArrayList, etc.). Learning how to control these loops using break and continue statements makes the code more flexible and powerful 💪. Every concept I learn in Java makes me realize how beautifully logic and syntax work together! #Java #Programming #LearningJourney #FullStackDevelopment #Coding #java fullstack development
To view or add a comment, sign in
-
#DAY59 #100DaysOFCode | Java Full Stack Development #Day59 of my #100DaysOfCode – Java 📘 Cursor in Java A Cursor in Java is used to traverse elements of a collection one by one. It provides a way to access, remove, or modify elements during iteration. Cursors are mainly used in the Collection Framework for iterating over lists, sets, and legacy classes. 🔹 Types of Cursors in Java Enumeration Used with legacy classes like Vector and Hashtable. Can only move forward. Cannot add or remove elements. Methods: hasMoreElements() – checks for next element nextElement() – returns next element Iterator Works with all collection classes. Can move only forward. Allows removal of elements during iteration. Methods: hasNext() next() remove() ListIterator Used only with List classes (ArrayList, LinkedList). Can move both forward and backward. Allows add, remove, and modify operations. Methods: hasNext(), next() hasPrevious(), previous() add(), remove(), set() A big thanks to my mentor Gurugubelli Vijaya Kumar Sir and the 10000 Coders for constantly guiding me and helping me build a strong foundation in programming concepts. #Java #Coding #Programming #100DaysOfCode #Java #programming #CodeNewbie #LearnToCode #Developer #Tech #ProgrammingTips #JavaDeveloper #CodeDaily #DataStructures #CodingLife
To view or add a comment, sign in
-
-
🚀 Mastering Methods in Java! ☕ Methods are the heart of Java programming — they help us write clean, reusable, and modular code. Understanding how methods work is key to becoming an efficient Java developer. Here are the 4 main types of methods based on Input and Output: 1️⃣ No Input, No Output → The method doesn’t take parameters or return any value. Example: void displayMessage() 2️⃣ Input, No Output → Takes parameters but doesn’t return a value. Example: void greet(String name) 3️⃣ No Input, With Output → Doesn’t take parameters but returns a value. Example: int getNumber() 4️⃣ Input and Output → Takes parameters and returns a value. Example: int add(int a, int b) Each method type serves a different purpose in building scalable and maintainable applications. Learning when to use which method is a key step toward writing professional-level Java code! 💻 🧠 Keep practicing — small steps every day make a big difference! #Java #Programming #CodeNewbie #Learning #DeveloperJourney #CodingCommunity #JavaDeveloper #SoftwareDevelopment #TapAcademy
To view or add a comment, sign in
-
-
Hey LinkedIn fam! Today I’m starting my Java journey and sharing the most important points about Java in a simple way: ----- What is a Java Program -----Why we use Java -----Benefits of Java (Cross-platform, OOP, Security, Multithreading) Perfect for beginners who want to get started with Java quickly. #Java #Programming #Coding #LearningJourney #TechBasics #Day1
To view or add a comment, sign in
-
#DAY68 #100DaysOFCode | Java Full Stack Development #Day68 of my #100DaysOfCode – Java 📘 Cursor in Java A Cursor in Java is used to traverse elements of a collection one by one. It provides a way to access, remove, or modify elements during iteration. Cursors are mainly used in the Collection Framework for iterating over lists, sets, and legacy classes. 🔹 Types of Cursors in Java Enumeration Used with legacy classes like Vector and Hashtable. Can only move forward. Cannot add or remove elements. Methods: hasMoreElements() – checks for next element nextElement() – returns next element Iterator Works with all collection classes. Can move only forward. Allows removal of elements during iteration. Methods: hasNext() next() remove() ListIterator Used only with List classes (ArrayList, LinkedList). Can move both forward and backward. Allows add, remove, and modify operations. Methods: hasNext(), next() hasPrevious(), previous() add(), remove(), set() A big thanks to my mentor Gurugubelli Vijaya Kumar Sir and the 10000 Coders for constantly guiding me and helping me build a strong foundation in programming concepts. #Java #Coding #Programming #100DaysOfCode #Java #programming #CodeNewbie #LearnToCode #Developer #Tech #ProgrammingTips #JavaDeveloper #CodeDaily #DataStructures #CodingLife
To view or add a comment, sign in
-
-
👉 Day 26 of My Java Learning Journey 🥳 🚀 Exploring Multi-Dimensional Arrays in Java ☕ When I first learned arrays, I thought “Cool, I can store a list of items.” Then came multi-dimensional arrays, and it felt like unlocking another level in Java 🎮. A multi-dimensional array is basically an array of arrays. For example int[][] numbers = { {1, 2, 3}, {4, 5, 6} }; Here, it’s like a table rows and columns 📊. You can access any element using numbers[row][column]. So, numbers[1][2] gives 6. Yesterday, I was visualizing data in rows and columns for a project. That’s when I realized “Hey, this is just like using 2D arrays in Java!” It’s amazing how every small concept connects to real-world logic 🔄. Learning one concept at a time builds the foundation of a strong backend developer. Keep going, stay consistent, and your logic will evolve every day 🌱.. #Java #BackendDevelopment #Programming #CodingJourney #LearnInPublic #100DaysOfCode #JavaDeveloper #CodeNewbie #TechCareer #SoftwareDevelopment #DeveloperCommunity #CodeWithJava #ConsistencyIsKey #ProgrammersLife #BuildInPublic
To view or add a comment, sign in
-
-
#DAY50 #100DaysOFCode | Java Full Stack Development #Day50 of my #100DaysOfCode – Java Topic->ArrayList In java Definition: ArrayList is a resizable array in Java that can grow or shrink in size dynamically. It is part of the java.util package and implements the List interface. Type: Class Package: java.util Introduced in: JDK 1.2 Implements: List, RandomAccess, Cloneable, Serializable Key Characteristics Stores elements in an ordered sequence (insertion order maintained). Allows duplicate elements. Allows null values. Dynamic resizing – increases size automatically when needed. Provides fast random access using indexes. Not synchronized (not thread-safe). Advantages Dynamic size management. Easy element access using index. Maintains insertion order. Disadvantages Slower for insertions or deletions in the middle. Not synchronized by default. A big thanks to my mentor Gurugubelli Vijaya Kumar Sir and the 10000 Coders for constantly guiding me and helping me build a strong foundation in programming concepts. #Java #Coding #Programming #100DaysOfCode #JavaProgramming #CodeNewbie #LearnToCode #Developer #Tech #ProgrammingTips #JavaDeveloper #CodeDaily #DataStructures #CodingLife
To view or add a comment, sign in
-
🚀 Mastering Java Stream API – Write Cleaner & Smarter Code 🚀 Java Stream API (introduced in Java 8) is a game-changer! It helps us process collections efficiently using a functional programming approach — making code more concise, readable, and expressive. Here’s why every Java developer should embrace Streams 👇 ✅ No boilerplate loops – focus on what to do, not how ✅ Supports parallel processing for performance ✅ Clean transformations using chainable operations 🔥 Example: Find unique names starting with “S” List<String> names = List.of("Sam", "Amit", "Sneha", "Sam", "Suraj"); List<String> result = names.stream() .filter(n -> n.startsWith("S")) .distinct() .sorted() .toList(); System.out.println(result); // [Sam, Sneha, Suraj] 🧩 Core Stream Operations 🔹 filter() – Filters elements 🔹 map() – Transform values 🔹 sorted() – Sorts the stream 🔹 distinct() – Removes duplicates 🔹 collect()/toList() – Final output 💡 Pro Tip: Use parallel streams for CPU-intensive operations to boost performance ⚡ #Java #StreamAPI #Java8 #Coding #Programming #SoftwareDevelopment #TechLearning #CleanCode
To view or add a comment, sign in
-
#DAY58 #100DaysOFCode | Java Full Stack Development #Day58 of my #100DaysOfCode – Java Topic->ArrayList In java Definition: ArrayList is a resizable array in Java that can grow or shrink in size dynamically. It is part of the java.util package and implements the List interface. Type: Class Package: java.util Introduced in: JDK 1.2 Implements: List, RandomAccess, Cloneable, Serializable Key Characteristics Stores elements in an ordered sequence (insertion order maintained). Allows duplicate elements. Allows null values. Dynamic resizing – increases size automatically when needed. Provides fast random access using indexes. Not synchronized (not thread-safe). Advantages Dynamic size management. Easy element access using index. Maintains insertion order. Disadvantages Slower for insertions or deletions in the middle. Not synchronized by default. A big thanks to my mentor Gurugubelli Vijaya Kumar Sir and the 10000 Coders for constantly guiding me and helping me build a strong foundation in programming concepts. #Java #Coding #Programming #100DaysOfCode #JavaProgramming #CodeNewbie #LearnToCode #Developer #Tech #ProgrammingTips #JavaDeveloper #CodeDaily #DataStructures #CodingLife
To view or add a comment, sign in
Explore related topics
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