In today's Core Java session, we explored how Java supports compile-time polymorphism by allowing multiple methods with the same name but different parameter lists. What seemed confusing at first became crystal clear through real-time coding and practical implementation under the guidance of Sharath R Sir at TAP Academy What I learned today: What compile-time polymorphism really means Changing number, type & order of parameters * How the compiler decides which method to execute * Writing cleaner, reusable, and structured code Instead of creating multiple method names, overloading helps maintain flexibility while keeping the code clean and readable. Every concept is adding one more strong brick to my Core Java & OOP foundation. #Java #CoreJava #OOP #MethodOverloading #Polymorphism #FullStackDeveloper #LearningJourney #TapAcademy Bibek Singh
Mastering Java Polymorphism with Sharath R Sir at TAP Academy
More Relevant Posts
-
In today’s Core Java session, we explored how Java supports compile-time polymorphism by allowing multiple methods with the same name but different parameter lists. What seemed confusing at first became crystal clear through real-time coding and practical implementation under the guidance of Sharath R Sir at TAP Academy 💡 What I learned today: ⚙️ What compile-time polymorphism really means 🧩 Changing number, type & order of parameters 📌 How the compiler decides which method to execute 🚀 Writing cleaner, reusable, and structured code Instead of creating multiple method names, overloading helps maintain flexibility while keeping the code clean and readable. Every concept is adding one more strong brick to my Core Java & OOP foundation.🔥 #Java #CoreJava #OOP #MethodOverloading #Polymorphism #FullStackDeveloper #LearningJourney #TapAcademy
To view or add a comment, sign in
-
-
🚀 Today I Learned – Java Static in Inheritance & Object Class Today I strengthened my understanding of some important Java concepts: 🔹 Static Variable Inheritance Static variables are inherited, but only one shared copy exists across the entire class hierarchy. 🔹 Static Methods & Method Hiding Static methods are inherited, but they cannot be overridden — they are hidden based on the reference type. 🔹 Execution Order in Inheritance Understanding the flow is important: Static Block → Instance Block → Parent Constructor → Child Constructor 🔹 Object Class as Root Every class in Java automatically inherits from the Object class. 🔹 Default vs Custom toString() By default, toString() returns: ClassName@Hashcode But we can override it to return meaningful and readable output. ✨ Small concepts, but very important for writing clean and predictable Java programs. TAP Academy #Java #OOP #Programming #LearningJourney #ComputerScience #JavaDeveloper #TapAcademy
To view or add a comment, sign in
-
-
🚀 25 Days of Java Coding Challenge – Day 19 📌 Problem: Find The Index Of The First Occurrence Of a String 💻 Language: Java 🧠 Concepts Used: String traversal and manual substring matching using two pointers. Compared characters sequentially to find the first occurrence of the pattern in the string. 🔗Leetcode Problem : https://lnkd.in/g5W6kATm 🔗GitHub Code : https://lnkd.in/gjwKiTKq Open to feedback 😊
To view or add a comment, sign in
-
-
🚀 25 Days of Java Coding Challenge – Day 17 📌 Problem: Longest Common Prefix 💻 Language: Java 🧠 Concepts Used: Array sorting and character-by-character string comparison. Efficiently finds the common prefix by comparing the first and last strings after sorting. 🔗Leetcode Problem : https://lnkd.in/gMzXYi3x 🔗GitHub Code : https://lnkd.in/g_WiRAvq Open to feedback 😊
To view or add a comment, sign in
-
-
🚀 Understanding Polymorphism in Java Polymorphism is one of the core concepts of Object-Oriented Programming (OOP). The word Polymorphism means “many forms.” In Java, it allows the same method or object to behave differently depending on the context or object calling it. 🔹 Types of Polymorphism 1️⃣ Compile-Time Polymorphism (Method Overloading) Occurs when multiple methods have the same name but different parameters. The decision of which method to call is made at compile time. 2️⃣ Run-Time Polymorphism (Method Overriding) Occurs when a child class provides a different implementation of a method defined in the parent class. The method call is resolved at runtime. 💡 Why Polymorphism is Important ✔ Improves code reusability ✔ Makes programs flexible and scalable ✔ Helps represent real-world scenarios in programming Understanding concepts like Polymorphism strengthens the foundation of writing clean, maintainable, and efficient code. 📚 Always learning and improving as a developer. #TAPAcademy #SharathR #LearningJourney #Java #OOP #Polymorphism #Programming #SoftwareDevelopment #LearningJourney
To view or add a comment, sign in
-
-
Hii Everyone!!! Topic: Method Overloading in Java (Compile-Time Polymorphism) Understanding Method Overloading in Java Today, I explored an important concept in Java called Method Overloading, which is a part of Compile-Time Polymorphism.. In this program, I created a Calculator class with multiple add() methods: Same method name Different parameter types and counts This allows Java to decide which method to execute based on the arguments passed — improving flexibility and code readability. #Java #Programming #Coding #MethodOverloading #OOP #JavaDeveloper #LearningJourney
To view or add a comment, sign in
-
-
Today I Learned – Object Orientation Rules & Main Method in Java While learning Java, I explored how object relationships work and how a program starts execution. --> HAS-A Relationship Represents composition or aggregation, where one class contains another class object as a member. Example: Car HAS-A Engine --> DOES-A Relationship Represents behavior implementation, where a class performs behavior defined by another type using interfaces or abstract classes. Example: Bird DOES-A Flyable --> Main Method in Java The entry point of a Java application where the Java Virtual Machine starts program execution. Syntax: public static void main(String[] args) Breakdown: • public → Accessible everywhere • static → Can be executed without creating an object • void → Does not return a value • main → Method recognized by JVM to start execution • String[] args → Used to receive command-line arguments #JavaDeveloper #ObjectOrientedProgramming #OOP #JavaLearning #BackendDevelopment #CodingJourney #100DaysOfCode #LearningInPublic #DeveloperCommunity #FutureDeveloper #TechCareer
To view or add a comment, sign in
-
-
Continuing my progress in Java, I’ve recently explored some important object-oriented and structural concepts that deepen my understanding of how real-world applications are designed. Here are the topics I covered: Containment (Has-A relationship) and how objects can be composed within other classes Method Overloading for achieving compile-time polymorphism Static Import to simplify code by directly accessing static members Inheritance for creating hierarchical relationships and promoting code reusability Packages for organizing classes and maintaining scalable project structure These concepts helped me better understand how to design modular, reusable, and maintainable Java applications. Step by step, moving closer to mastering core Java and applying these concepts in real-world scenarios. #Java #OOP #Programming #LearningJourney #SoftwareDevelopment #CDAC
To view or add a comment, sign in
-
-
💡 Java Strings Decoded: Memory, Mutability & Logic Ever wondered what really happens when we create a String in Java? 🤔 Here’s a quick breakdown of the concept I explored today: 🔹 Strings are immutable – once created, their value cannot be changed. Any modification creates a new object. 🔹 String Constant Pool (SCP) helps optimize memory by storing only one copy of identical string literals. 🔹 Using new String("Java") creates a new object in the heap, even if the same value already exists in the pool. 🔹 == compares memory addresses, while .equals() compares the actual content of strings. Understanding how Java manages strings helps us write more efficient and optimized code. Always learning, always improving 🚀 #TapAcademy #Java #JavaDeveloper #Programming #Coding #LearningInPublic #SoftwareDevelopment #FullStackDeveloper
To view or add a comment, sign in
-
-
Today I practiced Generics in Java. Generics help us write reusable and type-safe code. Instead of creating separate methods for different data types, we can use a generic type to handle multiple types with the same logic. In this example, a single generic method display() prints both Integer and Double arrays. Learning small concepts like this helps write cleaner and more flexible Java code 🚀 Saketh Kallepu Anand Kumar Buddarapu Uppugundla Sairam Kishor Kumar #Java #Generics #Programming #LearningJourney
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