Day 8 of My Java Learning Journey ☕💻 Today I continued strengthening my core Java fundamentals and focused on understanding Method Overloading and basic Inheritance concepts. What I practiced today: • Implemented method overloading by creating an Area Calculator for Square, Rectangle, and Circle • Learned how Java decides which method to call at compile time (Compile-Time Polymorphism) • Practiced taking user input using the Scanner class • Explored the basics of Inheritance using parent and child classes • Understood how child classes can access methods from parent classes One key takeaway today: Writing small programs helps reinforce concepts much better than just reading theory. Next on the learning roadmap: • Method Overriding • Runtime Polymorphism • Deeper understanding of Object-Oriented Programming in Java Step by step, building stronger backend fundamentals. #Java #LearningInPublic #Programming #BackendDevelopment #100DaysOfCode #JavaDeveloper
Java Fundamentals: Method Overloading and Inheritance
More Relevant Posts
-
🚀 Day 9/45 – Understanding Methods in Java On Day 9 of my Java learning journey, I explored the concept of Methods (Functions), which are essential for writing reusable and organized code. Methods help reduce repetition and make programs easier to understand and maintain. 📚 What I Learned Today Today I learned: ✔ What methods are and why they are used ✔ How to define and call methods ✔ Passing parameters to methods ✔ Returning values from methods 💻 Practice Work To apply my learning, I implemented: • A method to print a message • A method to perform addition • A method to check whether a number is even or odd 🎯 Key Takeaway Methods are a powerful feature in programming that promote code reusability and modular design. Understanding methods is an important step toward mastering advanced concepts like object-oriented programming. #Java #Programming #LearningInPublic #javadeveloper #CodingJourney #SoftwareDevelopment #Consistency
To view or add a comment, sign in
-
🚀 Day 14/45 – Understanding Inheritance in Java On Day 14 of my Java learning journey, I explored the concept of Inheritance, one of the core pillars of Object-Oriented Programming. Inheritance allows one class to acquire the properties and behaviors of another class, promoting code reuse and better program structure. 📚 What I Learned Today Today I learned: ✔ What inheritance is and how it works ✔ Parent (base) class and child (derived) class ✔ Using the extends keyword in Java ✔ Types of inheritance such as single and multilevel 💻 Practice Work To apply my learning, I implemented: • A basic inheritance example using person and student classes • An employee-manager example to demonstrate inherited properties 🎯 Key Takeaway Inheritance helps reduce code duplication and makes programs more organized and scalable. It is a powerful feature that plays a key role in building real-world applications.Understanding OOP concepts step by step is making programming more structured and logical. #Java #Programming #LearningInPublic #CodingJourney #SoftwareDevelopment #OOP
To view or add a comment, sign in
-
🚀 Day 8 of My Java Learning Journey Today I learned how Java handles input using BufferedReader & InputStreamReader 💻 🔹 Key Concepts I Covered: 👉 What is InputStreamReader 👉 What is BufferedReader 👉 Difference between read() and readLine() 👉 How to take character input 👉 How to take full string input 💡 Why this is important? ✔ Faster input than Scanner ✔ Used in competitive programming ✔ Helps understand low-level input handling 🧠 What I practiced today: ✅ Program to take a single character input ✅ Program to take a full string input 🔥 Small Step Today, Big Impact Tomorrow! Aman Soni Consistency is the key — learning something new every day 💯 #Java #CodingJourney #100DaysOfCode #Programming #Learning #BufferedReader #JavaDeveloper #CodeNewbie #VidhyaCodeGurukul
To view or add a comment, sign in
-
-
🚀 Day 12/45 – Understanding Constructors in Java On Day 12 of my Java learning journey, I explored the concept of Constructors, which play an important role in object initialization. Constructors are automatically called when an object is created and help in assigning initial values to object properties. 📚 What I Learned Today Today I learned: ✔ What constructors are and how they work ✔ Difference between constructors and methods ✔ Default constructors ✔ Parameterized constructors for initializing values 💻 Practice Work To apply my learning, I implemented: • A program using a default constructor • A program using a parameterized constructor • Creating multiple objects with different values 🎯 Key Takeaway Constructors make object creation more efficient and organized by initializing data at the time of object creation. This concept is very important for building structured and scalable applications. Learning OOP step by step is making programming more interesting. #Java #Programming #LearningInPublic #CodingJourney #SoftwareDevelopment #OOP
To view or add a comment, sign in
-
🚀 Day 7 of My Java Learning Journey Today I explored the For-Each Loop in Java — one of the simplest and most powerful ways to iterate through arrays & collections. 🔹 What I Learned: ✔ Clean & readable looping technique ✔ No need to manage index manually ✔ Works perfectly with arrays & collections 💡 Why it’s useful? It reduces code complexity and makes programs more readable — especially when you don’t need the index. 🧠 Key Takeaway: “Write smarter code, not longer code.” 👨🏫 Learning & guidance by Aman Soni Vidhya Code Gurukul 🔥 Consistency is the key — small steps every day lead to big results! #Day7 #Java #ForEachLoop #JavaLearning #CodingJourney #DSA #LearnInPublic #Programming #Consistency
To view or add a comment, sign in
-
-
🚀 Java Learning Journey – Day 5 Why Java Says "No" to Multiple Inheritance (and "Yes" to Interfaces) 💎 Ever wondered why Java doesn't allow a class to inherit from two parents? It all comes down to the Diamond Problem. When two parent classes have the same method, the compiler gets confused: "Which one should I use?" To keep things clean and prevent bugs, Java blocks this at the class level. But wait—you can still achieve the same goal! 💡 By using Interfaces, you get the flexibility of multiple inheritance without the ambiguity. Check out this quick visual guide I put together to break it down. 👇 #Java #Programming #ObjectOrientedProgramming #SoftwareDevelopment #CodingTips #TechCommunity
To view or add a comment, sign in
-
-
Day 9 – Java Learning Journey Today I continued strengthening my Java fundamentals, focusing on method overriding and important rules in inheritance. Key concepts I explored: • Method Overriding Rules in Java The child class method must have the same method signature as the parent class method. The return type must be the same or covariant (a subclass of the parent return type). The method cannot be static, because static methods belong to the class rather than the object. • Covariant Return Types Java allows a child class method to return a more specific type than the parent class method, making inheritance more flexible. • Static vs Instance Methods I also learned why static methods cannot be overridden and are instead method hidden, which behaves differently from runtime polymorphism. Step by step, continuing to build a stronger foundation in Core Java and OOP concepts. 🚀 #Java #CoreJava #OOP #MethodOverriding #Programming #SoftwareDevelopment #LearningJourney
To view or add a comment, sign in
-
🚀 Day 5/45 – Mastering Loops in Java On Day 5 of my Java learning journey, I explored one of the most important concepts in programming — Loops. Loops allow us to execute a block of code multiple times, which is essential for solving real-world problems efficiently. 📚 What I Learned Today Today I learned about: ✔ for loop for controlled iterations ✔ while loop for condition-based execution ✔ do-while loop which executes at least once These concepts helped me understand how repetition works in programming. 💻 Practice Work To apply my learning, I implemented: • Printing numbers from 1 to 10 • Calculating the sum of first 10 numbers • Generating multiplication tables • Creating star patterns using nested loops 🎯 Key Takeaway Loops are extremely powerful and help reduce repetitive code. Understanding loops is essential for solving complex problems and building efficient programs. Daily practice is helping me improve my logical thinking. #Java #Programming #LearningInPublic #CodingJourney #SoftwareDevelopment #Consistency
To view or add a comment, sign in
-
🚀 Day 73/100 of My Java Programming Series ☕💻 Today, I learned and practiced Method Overloading in Java — an important concept of compile-time polymorphism. 📌 What I explored today: ✅ What is Method Overloading ✅ Same method name with different parameters ✅ Changing number of arguments ✅ Changing data types of arguments ✅ Improving code readability and reusability ✅ Real-time examples for better understanding 💡 Key takeaway:Method Overloading allows us to define multiple methods with the same name but with different parameter lists. It helps make programs more flexible, organized, and easier to understand. 🧠 This concept is very useful in writing cleaner code and understanding how Java supports polymorphism. 🔥 Day 73 completed. Still learning, still growing! #Java #JavaProgramming #OOP #MethodOverloading #Polymorphism #100DaysOfCode #CodingJourney #Programming #SoftwareDevelopment #JavaDeveloper #LearningJourney10000 Coders Meghana M
To view or add a comment, sign in
-
🚀 Starting My Java Learning Journey – Day 8 🔹 Topic: Methods in Java A method is a block of code that performs a specific task. Methods help make programs organized, reusable, and easier to read. returnType – type of value the method returns (use void if it returns nothing) methodName – name of the method parameters – input values the method takes 📌 Example Program public class Main { // Method to add two numbers static int addNumbers(int a, int b) { return a + b; } public static void main(String[] args) { int sum = addNumbers(10, 20); System.out.println("Sum: " + sum); } } Output: Sum: 30 💡 Key Points: Methods avoid code repetition Methods can take inputs (parameters) and return outputs Helps in modular programming #Java #JavaLearning #Programming #BackendDevelopment #CodingJourney #JavaMethods
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