🚀 Day 18 – Core Java Programming Series Today, I learned about Method Overloading in Java. 🔹 What is Method Overloading? Method Overloading means defining multiple methods with the same name in the same class but with different parameters. The difference can be: ✅ Number of parameters ✅ Type of parameters ✅ Order of parameters 👉 It is an example of Compile-Time Polymorphism. 🔹 Why Do We Use Method Overloading? ✔️ Improves code readability ✔️ Increases flexibility ✔️ Helps in reusing method names for similar operations 💡 Today I solved 19 problems related to Method Overloading and strengthened my understanding of compile-time polymorphism. Consistency is the key to success. Learning something new every day! 🚀 #Java #CoreJava #MethodOverloading #Polymorphism #100DaysOfCode #LearningJourney
Java Method Overloading Basics
More Relevant Posts
-
Day 5 of My Java Learning Journey Today I learned about Methods, Method Overloading, and Method Overriding in Java. >>Methods: A method is a block of code that performs a specific task. It helps in code reusability and makes the program more organized and readable. Basic structure of a method: *Access modifier *Return type *Method name *Parameters *Method body >>Method Overloading: Method overloading means having multiple methods with the same name but different parameters (different number or type of arguments) in the same class. >>Method Overriding: Method overriding happens when a child class provides its own implementation of a method that is already defined in the parent class. #Java #OOPS #MethodOverloading #MethodOverriding #LearningInPublic
To view or add a comment, sign in
-
🚀 Day – Java Learning Update ⏳ 🎯 Understanding Switch Case in Java Today, I learned about the Switch Case statement in Java, which is used to execute different blocks of code based on the value of a variable or expression. It is mainly used when we have multiple conditions to check for a single variable, making the code more readable compared to many if-else statements. 🔹 What is Switch Case? The switch statement allows a variable to be tested against multiple possible values called cases. ✔ Each case represents a possible value ✔ break stops execution after a case runs ✔ default runs if no case matches 🔹 Syntax of Switch Case switch(expression) { case value1: // code block break; case value2: // code block break; case value3: // code block break; default: // default code block } 🧑💻 Task Practiced: Traffic Signal Program I implemented a simple program using switch case to represent a traffic signal. #Java #CoreJava #JavaFullStack #SwitchCase #Programming #SoftwareDeveloper #LearningJourney 10000 Coders Meghana M
To view or add a comment, sign in
-
-
Day 28 -What I Learned in a Day(JAVA) Today I started learning Looping Statements in Java. Loops are used to execute a block of code repeatedly until a certain condition becomes false. They help reduce code repetition and make programs more efficient. In Java, there are mainly three types of loops: • while loop • do-while loop • for loop Today I focused on the while loop. 🔹 What is a While Loop? A while loop executes a block of code repeatedly as long as the condition is true. The condition is checked before the loop executes, so if the condition is false initially, the loop will not run. Syntax of While Loop: initialization; while(condition) { // statements increment / decrement; } What I Practiced Today: ✔ Practiced 3 basic while loop programs ✔ Built a calculator program using while loop and switch statement ✔ Learned how loops control program flow and reduce repetitive code Every day I’m taking small steps to improve my Java programming skills and strengthen my understanding of core concepts. Practiced 👇 #Java #JavaLearning #Programming #CodingJourney #Loops #WhileLoop
To view or add a comment, sign in
-
🚀 Today I Learned – Inheritance in Java •Today, I learned about Inheritance, the second pillar of Object-Oriented Programming (OOP) in Java. 🔹 Inheritance allows one class (child) to acquire properties and behaviors from another class (parent). 🔹 In Java, inheritance is achieved using the extends keyword. 🔍 Key Concepts I Covered: ✅ Single Inheritance – One parent → One child ✅ Multilevel Inheritance – Grandparent → Parent → Child ✅ Hierarchical Inheritance – One parent → Multiple children ✅ Hybrid Inheritance – Combination of inheritance types (concept exists) ❌ Multiple Inheritance – Not supported in Java classes 💎 Diamond Problem •I also understood why Java does not support multiple inheritance with classes — to avoid ambiguity when two parent classes contain the same method. Understanding inheritance helps in: •Code reusability •Better organization •Building scalable applications #Java #OOP #Inheritance #LearningJourney #SoftwareDevelopment #CoreJava #Programming #TapAcademy
To view or add a comment, sign in
-
-
💻 Java Programming Practice – Decimal to Binary Conversion. Today I practiced a Java program to convert a Decimal number into a Binary number. 📌 What this program does: • Takes a decimal number as input from the user • Uses division by 2 logic to find binary digits • Stores the values in an array • Prints the binary number as output ✅ Example: Decimal Number: 12 Binary Number: 1100 💡 Concepts used in this program: ✔ Java input using Scanner ✔ While loop ✔ Arrays ✔ Number conversion logic I am practicing Java programs daily to improve my coding and problem-solving skills for IT placements. #Java #Programming #CodingPractice #JavaDeveloper #LearningJourney #SoftwareDevelopment
To view or add a comment, sign in
-
-
💻 Java Programming Practice – Find the Largest Word in a Sentence. Today I practiced a Java program to find the largest word in a sentence. 📌 What this program does: • Takes a sentence input from the user • Splits the sentence into individual words • Compares the length of each word • Displays the largest word in the sentence ✅ Example: Sentence: I am Dinesh from Tiruvannamalai Output: Largest word in the sentence = Tiruvannamalai 💡 Concepts used in this program: ✔ Java Scanner input ✔ String split() method ✔ Loops ✔ String length comparison I am practicing Java programs daily to improve my coding and problem-solving skills for IT placements. #Java #Programming #CodingPractice #JavaDeveloper #Learning #SoftwareDevelopment
To view or add a comment, sign in
-
-
Releasing my Complete Java Programming Notes — completely free for the community! I've compiled everything a Java learner needs into one structured, easy-to-read document. 📖 Covers: → Java Basics, OOP, Arrays, Methods, Strings → Exception Handling, Collections Framework → File Handling, Interfaces, Multithreading → Java 8+ Features (Lambdas, Streams, Optional) → Interview Questions + Quick Reference Cheat Sheet Designed to be beginner-friendly — no prior experience needed! I believe quality education should be accessible to everyone. This is my small contribution. 💡 🔗 Link: https://lnkd.in/gMuT-6qc Drop a ⭐ if you find it useful! #Java #SoftwareDevelopment #ProgrammingNotes #LearnJava #TechEducation #CodingCommunity #FreeLearning
To view or add a comment, sign in
-
💻 Java Programming Practice – Reverse a String. Today I practiced a Java program to reverse a string. 📌 What this program does: • Takes a string input from the user • Reads each character from the end of the string • Builds a new reversed string • Displays the reversed output ✅ Example: Input: Tiruvannamalai Output: ialamannavuriT 💡 Concepts used in this program: ✔ Java Scanner input ✔ String length method ✔ For loop ✔ Character handling I am practicing Java programs daily to improve my coding and problem-solving skills for IT placements. #Java #Programming #CodingPractice #JavaDeveloper #Learning #SoftwareDevelopment
To view or add a comment, sign in
-
-
💻 Java Programming Practice – Count Vowels in a String. Today I practiced a Java program to count vowels in a string. 📌 What this program does: • Takes a string input from the user • Checks each character in the string • Identifies vowels (a, e, i, o, u) • Counts the total number of vowels ✅ Example: Input: RamanathapuramEducation Output: Vowels in the String = 10 💡 Concepts used in this program: ✔ Java Scanner input ✔ String methods ✔ For loop ✔ Conditional statements I am practicing Java programs daily to improve my coding and problem-solving skills for IT placements. #Java #Programming #CodingPractice #JavaDeveloper #Learning #SoftwareDevelopment
To view or add a comment, sign in
-
-
Day 22-What I Learned In a Day(JAVA) Today I learned about method calling in Java. I practiced how a method can be called multiple times from the main() method. I also understood that when calling a method, we can pass arguments in two ways: 1️⃣ Directly passing values m1(10); 2️⃣ Passing values through a variable int a = 10; m1(a); Both approaches will pass the value to the method parameter and execute the method. Through this practice, I improved my understanding of method creation, parameter passing, and method execution flow in Java. Hashtags Practiced 👇 #Java #CoreJava #JavaLearning #Programming #CodingJourney #JavaMethods #LearnJava #Developers #TechLearning #DailyLearning
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