🚀 Day – Java Learning Update ⏳ 🎯 Understanding Looping Statements: For Loop in Java Today, I learned about Looping Statements in Java, specifically the for loop. Loops help execute a block of code multiple times without writing the same code repeatedly. What is a For Loop? A for loop is used when the number of iterations is known in advance. It combines initialization, condition, and increment/decrement in a single statement. Initialization – starting point of the loop Condition – determines how long the loop runs Increment/Decrement – updates the loop variable Syntax of For Loop: for(initialization; condition; increment/decrement) { // code to execute repeatedly } Task: Find the factorial of a num from 1 to 30 #Java #JavaFullStack #CoreJava #ForLoop #Programming #SoftwareDeveloper #BackendDeveloper #LearningJourney 10000 Coders Meghana M
Java For Loop Basics: Understanding Initialization, Condition, and Increment
More Relevant Posts
-
🚀 Java Learning Journey – Interesting Concept While learning Java, I came across an important concept: 👉 Why is String immutable in Java? In Java, once a String object is created, its value cannot be changed. This design helps Java in several ways: • Improves security for sensitive data • Enables String Pool for memory optimization • Provides thread safety in multi-threaded environments • Ensures better performance when used as keys in HashMap Understanding these core concepts helps build a stronger foundation in Java development. What other Java concepts do you think every developer should know? #Java #JavaDeveloper #Programming #Coding #SoftwareDevelopment #LearningInPublic
To view or add a comment, sign in
-
Java Learning Journey – Day 5 Today I explored one of the most commonly used concepts in Java — Strings. Strings are used to store and manipulate text data, and almost every Java application uses them in some way. 🔹 Key things I learned today: • Creating Strings – String name = "Java Learner"; • Concatenation – Joining two strings together using + • Finding Length – Using length() to know the size of a string • Accessing Characters – Using charAt() 🔹 Useful String Methods: • toUpperCase() / toLowerCase() – Change letter case • indexOf() / contains() – Search inside strings • substring() – Extract part of a string • replace() – Replace text • split() – Break string into parts • trim() – Remove extra spaces 💡 Why Strings are important? Because most real-world applications deal with text processing, user input, and data handling. Learning step by step and building a strong foundation in Java every day. If you're learning Java or working in development, feel free to connect and share your journey. 🤝 #Java #JavaDeveloper #Programming #CodingJourney #SoftwareDevelopment #LearnJava
To view or add a comment, sign in
-
-
Learning Java for nearly two years has presented challenges, particularly with the major changes introduced in Java 8 that significantly altered the way Java is written. To simplify my learning process, I began creating structured notes that are typed for easy updates and improvements over time. This effort has proven beneficial in strengthening my understanding of modern Java features. I am sharing this document here to assist other Java developers or students in their learning journey. It currently covers important Java 8 features, including: - Lambda Expressions - Functional Interfaces - Default Methods - Predicate and Function interfaces - Method References (::) - Stream API - Date & Time API Each section includes simple examples to aid comprehension. Feel free to use it, and I hope it helps you in your Java learning experience. #Java #JavaDeveloper #Java8 #LambdaExpressions #StreamAPI #FunctionalProgramming #Programming #JavaNotes
To view or add a comment, sign in
-
Learning Java for nearly two years has presented challenges, particularly in finding well-structured notes that cover concepts clearly in one place. To address this, I started creating my own notes—typed so they can be easily updated and improved over time. It took a lot of effort, but the result has been very rewarding. I'm sharing this document here in case it helps other Java developers or students in their learning journey. This document currently covers Java Collections Framework concepts, including core interfaces, common implementations, and Concurrent Collections used in multithreaded environments. Feel free to use it, and let me know if it helps you in learning Java. #Java #JavaDeveloper #JavaCollections #ConcurrentProgramming #Programming #JavaNotes
To view or add a comment, sign in
-
🚀 Day 22/100 – Java Learning Series Today I explored important looping and control concepts in Java, along with handling user input in programs. 🔹 while Loop The while loop executes a block of code as long as a condition remains true. It is useful when the number of iterations is not known beforehand. Syntax: while(condition){ // code } 🔹 do-while Loop The do-while loop is similar to the while loop, but it executes the code at least once, even if the condition is false. Syntax: do{ // code } while(condition); 🔹 Jumping Statements Jumping statements control the flow of loops and program execution. ✔ break – terminates the loop immediately ✔ continue – skips the current iteration and moves to the next ✔ return – exits from a method 🔹 Scanner Class The Scanner class (from java.util package) is used to take input from the user during program execution. Example: import java.util.Scanner; Scanner sc = new Scanner(System.in); int num = sc.nextInt(); 💡 Key Learning: Combining loops + jumping statements + user input helps build interactive and dynamic Java programs. Consistency in learning is the path to mastering programming. 💻🔥 #Java #JavaProgramming #CodingJourney #LearnJava #Programming #SoftwareDevelopment #JavaDeveloper #100DaysOfCode #10000 Coders #Meghana M
To view or add a comment, sign in
-
Learning Java for nearly two years has presented challenges, particularly in finding well-structured notes that cover concepts clearly in one place. To address this, I started creating my own notes—typed so they can be easily updated and improved over time. It took a lot of effort, but the result has been very rewarding. I'm sharing this document here in case it helps other Java developers or students in their learning journey. This document currently covers Java Exception Handling concepts. Feel free to use it, and let me know if it helps you in learning Java. #Java #JavaDeveloper #ExceptionHandling #Programming #JavaNotes
To view or add a comment, sign in
-
🚀 Day 16 of My Java Learning Journey Today, I explored one of the most important OOP concepts in Java — Constructors 🔥 🔹 What I Learned: • Constructor is a special method used to initialize objects • It has the same name as the class • No return type (not even void) • Automatically called when object is created 🔹 Types of Constructors: • Default Constructor • Parameterized Constructor 💡 Key Insight: Java does not have a built-in copy constructor like C++, but we can create it manually if needed. 🧠 Realization: Constructors make object creation more structured and efficient — they are like the “starting point” of any object in Java. Consistency + Practice = Growth my mentor Aman Soni Vidhya Code Gurukul #Java #OOP #Programming #LearningJourney #CodeNewbie #100DaysOfCode #Developers #TechSkills
To view or add a comment, sign in
-
-
📘 Java Learning Update 🚀 Today, I explored the concepts of Exception Handling in Java and gained a better understanding of how Java handles errors during program execution. 🔹 Learned the difference between throw and throws: throw is used to explicitly throw an exception. throws is used to declare exceptions in a method signature. 🔹 Types of Exceptions: ✔ Runtime Exceptions: ArrayIndexOutOfBoundsException NegativeArraySizeException ✔ Compile-Time (Checked) Exceptions: FileNotFoundException ClassNotFoundException 🔹 Types of Errors: ✔ Compile-Time Errors: Syntax errors ✔ Run-Time Errors: StackOverflowError This learning helps me write more reliable and robust Java programs. #Java #ExceptionHandling #LearningJourney #FullStackDeveloper #Coding #TapAcademy
To view or add a comment, sign in
-
-
🚀 Starting My Java Learning Journey – Day 9 🔹 Topic: Method Overloading in Java Method Overloading is a feature in Java that allows a class to have multiple methods with the same name but different parameters. It helps improve code readability and flexibility. 📌 Ways to Achieve Method Overloading 1️⃣ Different number of parameters 2️⃣ Different data types of parameters 📌 Example Program public class Main { // Method with two int parameters static int add(int a, int b) { return a + b; } // Method with three int parameters static int add(int a, int b, int c) { return a + b + c; } public static void main(String[] args) { System.out.println(add(5, 10)); System.out.println(add(5, 10, 15)); } } Output: 15 30 💡 Key Points: ✔ Method overloading allows multiple methods with the same name ✔ Methods must differ in number or type of parameters ✔ Helps make programs more flexible and readable #Java #JavaLearning #Programming #BackendDevelopment #CodingJourney #MethodOverloading
To view or add a comment, sign in
-
Java Learning Journey – Day 7 Today I practiced an important concept in Java — Decision Making using If-Else and Switch Statements. These statements help a program choose different actions based on conditions. 🔹 If-Else Statement Used when a program needs to check a condition and execute different blocks of code. Example: if (temp > 30) { System.out.println("It's hot!"); } else { System.out.println("It's not hot."); } 🔹 Switch Statement Used when there are multiple possible cases for a single value. Example: switch(day) { case 1: System.out.println("Monday"); break; case 2: System.out.println("Tuesday"); break; default: System.out.println("Invalid day"); } 💡 Why this is important? Because real-world programs constantly make decisions based on conditions. Learning step by step and strengthening my Java programming fundamentals every day. If you're learning Java or working in development, feel free to connect and share your journey. 🤝 #Java #JavaDeveloper #Programming #CodingJourney #SoftwareDevelopment #LearnJava #Hariom #HariomKumar
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