🚀 Today’s Java OOP Learning – Object Class Methods Today I explored important methods of Java’s Object class: ✅ toString() ✅ equals() ✅ hashCode() ✅ getClass() ✅ clone() Implemented examples to understand how object comparison, hashing, and string representation work internally. This really helped me understand how Java handles objects behind the scenes. Practicing step by step and pushing code daily on GitHub to stay consistent. 🔗 GitHub Code: https://lnkd.in/gMxUuJji #Java #OOPS #LearningInPublic #DSA #JavaDeveloper #CodingJourney
Java Object Class Methods: toString, equals, hashCode, getClass, clone
More Relevant Posts
-
Day 8 of 100 | Java basics, but for real this time While revising Java, I realized I didn’t “learn” some things earlier — I just memorized them and hoped for the best A few myths I’m finally clearing up: ❌ “If the code compiles, it’s correct” ✔ Compilation checks syntax, not logic or edge cases. ❌ “More OOP keywords = better code” ✔ Turns out, readable code matters more than fancy words. ❌ “Stack and Heap is the whole story” ✔ Java said, there’s more happening behind the scenes. This time, I’m slowing down and actually understanding the fundamentals instead of racing through them. Laughing at my old mistakes, learning from them, and moving forward #Day8 #100DaysOfCode #Java #LearningInPublic #ProgrammingHumor #Consistency #Javafullstack #GenAI
To view or add a comment, sign in
-
Day 11 of 100 days 💻 Today I learned about Method Overriding in Java. Method overriding happens when a child class provides its own implementation of a method that is already defined in the parent class. ✔ Same method name ✔ Same parameters ✔ Same return type ✔ Happens in inheritance It helps achieve Runtime Polymorphism — meaning the method that gets executed is decided at runtime. Also learned: 🔹 @Override annotation makes code safer 🔹 Access modifier cannot be more restrictive than the parent method 🔹 final and static methods cannot be overridden OOP concepts are slowly connecting together now — inheritance + polymorphism makes much more sense #Java #JavaLearning #OOP #MethodOverriding #Polymorphism #100DaysOfCode #ProgrammingJourney #SoftwareDevelopment #CodingLife
To view or add a comment, sign in
-
-
Method Overloading in Java Method overloading allows multiple methods to share the same name but have different parameters (type, number, or order). ✅ Improves readability ✅ Supports compile-time polymorphism ✅ Makes code clean and intuitive Remember: Return type alone cannot overload a method. TAP Academy #Java #OOP #MethodOverloading #Coding #JavaDeveloper
To view or add a comment, sign in
-
-
📘 Today I revised OOP concepts in Java. Java is built on 4 main pillars: ✔ Encapsulation – Wrapping data and methods together ✔ Inheritance – One class acquiring properties of another ✔ Polymorphism – One method, multiple behaviors ✔ Abstraction – Hiding implementation details Understanding OOP makes code reusable and maintainable. Small improvements every day 💪 #Java #OOP #SoftwareDevelopment
To view or add a comment, sign in
-
📘 Today I Learned — Java static Keyword 🔹 What I Learned •static makes a variable or method belong to the class, not the object. Useful for memory efficiency and operations that don’t depend on object state. 🔹 Key Concepts •Static Variables Only one copy exists for the entire class Shared by all objects •Static Methods Can be called without creating an object Can access only static data Ideal for utility functions •Static Block Runs once when the class loads Used to initialize static variables Executes before main() •Static Inner Class Only inner classes can be static 🔹 Why It’s Important •Helps optimize memory •Supports efficient utility operations •Useful for one-time initialization •Reduces unnecessary object creation #Java #OOPs #StaticKeyword #JavaProgramming #FullStackDeveloper #LearningJourney #TapAcademy #CodingBasics
To view or add a comment, sign in
-
-
Day 10 of 100 days |💻 Today I learned about Inheritance — how one class can inherit properties from another. 👨👦 Parent Class (Super Class) The class that gives properties. 👶 Child Class (Sub Class) The class that inherits and can add its own features. I also understood: 🔹 this() → refers to the current class 🔹 super() → refers to the parent class And something interesting — Java does NOT support multiple inheritance with classes Because it can cause ambiguity (Diamond Problem) Also explored: ✔ Single-level inheritance ✔ Multi-level inheritance It’s cool how Java lets you reuse code instead of rewriting everything again and again. OOP is slowly starting to make sense #Java #JavaLearning #OOP #Inheritance #ProgrammingJourney #100DaysOfCode #CodingLife #SoftwareDevelopment #TechLearning
To view or add a comment, sign in
-
-
🔹 Understanding Static in Java & JVM Execution Order Today I revised an important Java concept — Static members and JVM execution flow — and here is my simple takeaway: ✔️ Static variables and methods belong to the class, not to individual objects. ✔️ They are loaded once when the class is loaded, which helps in better memory usage. ✔️ JVM follows a clear execution order: class loading → static variables → static blocks → instance variables → instance blocks → constructor. Learning these basics makes it easier to understand how Java programs actually run behind the scenes. Always building strong fundamentals step by step. 🚀 🔹 Inheritance in OOP Inheritance is an Object-Oriented Programming concept where one class can use the properties and methods of another class. It helps in creating a parent-child relationship between classes and promotes code reusability. ✅ Advantages of Inheritance: ✔️ Reuse of existing code without rewriting it. ✔️ Makes programs more organized and easy to maintain. ✔️ Helps in achieving hierarchical classification. ✔️ Improves readability and reduces redundancy. Learning inheritance helps in building structured and scalable programs step by step. 🚀 #Java #Programming #LearningJourney #JVM #OOPs #Static #Inheritance Bibek Singh
To view or add a comment, sign in
-
-
Most people think learning Java is about syntax. It’s not. Java is really about 𝗵𝗼𝘄 𝘆𝗼𝘂 𝘁𝗵𝗶𝗻𝗸 when you write code. Early on, I treated Java like a checklist: • Learn variables • Learn loops • Learn classes • Move on But that approach creates fragile developers. What actually matters is understanding 𝘄𝗵𝘆 𝗝𝗮𝘃𝗮 𝗳𝗼𝗿𝗰𝗲𝘀 𝘀𝘁𝗿𝘂𝗰𝘁𝘂𝗿𝗲 : • Why everything lives inside a class • Why types are strict • Why compilation errors exist before runtime Java doesn’t try to be convenient. It tries to be 𝗽𝗿𝗲𝗱𝗶𝗰𝘁𝗮𝗯𝗹𝗲, 𝗿𝗲𝗮𝗱𝗮𝗯𝗹𝗲, 𝗮𝗻𝗱 𝘀𝗮𝗳𝗲 𝗮𝘁 𝘀𝗰𝗮𝗹𝗲. That’s uncomfortable at first — and that’s the point. Today was about setting the foundation: • Understanding how Java programs actually run • Why JVM exists • Why Java looks “verbose” compared to other languages This isn’t about speed. This is about building discipline that compounds over time. Consistency > shortcuts. Clarity > cleverness. I’m building this habit one step at a time. #Java #100DaysOfCode #SoftwareEngineering #Programming #DeveloperJourney #LearningInPublic
To view or add a comment, sign in
-
-
🔵 Today, I learned how Java handles data initialization and why it’s crucial for writing clean, maintainable code. One common beginner issue I explored is the shadowing problem, where local variables inside a setter unintentionally hide instance variables. 💡 The solution? Use the this keyword to clearly refer to instance variables. Once you understand this, Java’s constructor mechanism becomes even more powerful. Constructors act like Java’s built-in setters — they run automatically during object creation and help you initialize values cleanly and consistently. #Java #OOPs #Constructors #ProgrammingBasics #CleanCode #SoftwareDevelopment #TapAcademy #LearningJourney #CodingTips
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