Here is a Java code snippet on MethodOverloading. Excited to share how i explored using the same method name with different datatypes in java. #java #coding #programming @Raviteja T @10000coders
More Relevant Posts
-
Today I Learned: Static Methods in Java Interface Continuing my Java learning, I explored static methods inside interfaces — and they’re pretty useful! From Java 8 onwards, interfaces can also have static methods with implementation. Why is it useful ? Static methods belong to the interface itself, not to the implementing class. They are mainly used for utility or helper methods related to that interface. Key Takeaways: Static methods belong to the interface, not objects Called using interface name Useful for common helper functionality Learning something new every day and getting better step by step #Java #Learning #CodingJourney #Programming #100DaysOfCode
To view or add a comment, sign in
-
-
Day 43-What I Learned In a Day(JAVA) Today I worked on String concepts in Java and practiced some interesting problems. What I learned: Creating and using strings in Java Converting a number into an array using strings Handling characters using charAt() Problems I practiced: ✅ Created and manipulated strings ✅ Converted number -array using string ✅ Moved zeros to the end of an array These problems helped me understand how strings and arrays work together and improved my problem-solving skills. Learning step by step and getting better every day! Practiced 👇 #Java #CodingPractice #LearningJourney #Programming #100DaysOfCode
To view or add a comment, sign in
-
🚀 Day 40/45 – Advanced Multithreading in Java 🧵 Today I deep-dived into Multithreading, one of the most powerful concepts in Java for concurrent execution. 📚 What I Learned: ✔ Thread lifecycle ✔ Creating threads using Thread class ✔ Runnable interface implementation ✔ sleep() and join() methods ✔ Parallel execution concepts 💻 Practice: • Created multiple threads • Simulated real-world concurrent tasks • Practiced thread coordination 🎯 Key Takeaway: Multithreading helps build high-performance applications by executing multiple tasks simultaneously. #Java #Multithreading #Programming #CodingJourney #LearningInPublic #BackendDevelopment
To view or add a comment, sign in
-
Today, I explored one of the core concepts of Object-Oriented Programming — Polymorphism in Java. - Understood how a single interface can represent multiple behaviors. - Practiced method overriding and runtime polymorphism. - Implemented real examples using inheritance and dynamic method dispatch. This concept really changed how I think about writing flexible and scalable code. Sharing a small implementation I worked on. #Java #OOP #Polymorphism #CodingJourney #LearningInPublic #SoftwareDevelopment #TAP TAP Academy
To view or add a comment, sign in
-
-
Day 45-What I Learned In a Day (JAVA) Today I explored some important concepts related to static in Java: 🔹 Static Method Learned how static methods belong to the class and can be called without creating an object. 🔹 Static Initializer (Static Block) Understood how a static block is executed only once when the class is loaded. 🔹 Single-Line Static Initializer Explored how we can initialize static variables in a single line. 🔹 Multi-Line Static Initializer Learned how to use static blocks for complex initialization logic. Practiced 👇 #Java #Programming #LearningJourney #Coding #100DaysOfCode
To view or add a comment, sign in
-
Today I strengthened my understanding of how Java programs actually execute 🚀☕ Here’s what I learned step by step: ✔ The file name must match the public class name 📄 ✔ The main() method can be inside any class, not only the public class 🔍 ✔ Only one public class is allowed in one ".java" file ⚠️ ✔ Protected members outside the package are accessible through inheritance — 🔹 Non-static → accessed using child class object 🔹 Static → accessed using child class name or parent class name inside child class 👨👦✨ ✔ The JVM first loads the class that contains main(), then loads other required classes when needed 🧠 Understanding these core execution rules is helping me build stronger clarity in Java inheritance and access modifiers 💻📚 #Java #Programming #LearningJourney #OOP #JavaDeveloper #BackendDevelopment 🚀
To view or add a comment, sign in
-
Day 20– Multithreading Basics Today I explored Multithreading in Java, a concept that allows multiple tasks to run simultaneously. Instead of executing tasks one by one, threads help improve performance by running processes in parallel. Things I learned today: 🔹 What is a thread 🔹 Difference between process and thread 🔹 Creating a thread using Thread class 🔹 Importance of start() and run() 💡 Key takeaway: Multithreading helps in building efficient and high-performance applications by executing multiple tasks at the same time. Step by step moving towards more advanced Java concepts #Java #Multithreading #Programming #LearningInPublic #CodingJourney #Day20
To view or add a comment, sign in
-
-
#Day_13 of My Java Learning Journey – Writing Functions in Java Today I practiced how to create functions (methods) in Java, and I built a simple program to check whether a number is Even or Odd. 🔥 What I learned today: ✔ How to create a boolean function ✔ How to use if-else conditions inside a method ✔ How to return true/false ✔ How to call a method inside the main() function ✔ How to print the result in the console 🧩 Example I worked on: I created a method IfEven(int a) that: Prints whether the number is Even or Odd Returns a boolean value (true for even, false for odd) This helped me understand functions more clearly and how they improve code structure and reusability. #Java #LearningJourney #100DaysOfCode #Coding #Developer #JavaBeginners #OOP #CodeNewbie
To view or add a comment, sign in
-
-
Virtual Threads in Java have made a big chunk of reactive programming… unnecessary. For years, Java developers were told: 👉 “Threads are expensive” 👉 “Use async + non-blocking code” 👉 “Adopt reactive frameworks like WebFlux” And it made sense—platform threads were heavy. Then came Virtual Threads (Project Loom) 🚀 What changed? Virtual threads are: • Lightweight (millions can exist) • Cheap to block • Managed by the JVM, not OS • Too easy to implement. • Scales as required automatically. Bottom line: 👉 Virtual threads bring back straightforward coding 👉 Reactive is now a niche, not a default #java #learn #threads #jdk #programming
To view or add a comment, sign in
-
-
Day 55-What I Learned In a Day (JAVA) Today, I learned how to create and use constructors in Java. 🔹 A constructor is a special method used to initialize an object when it is created. 🔹 Constructors are non-static by default, meaning they work with objects and help assign values to instance variables. 🔹 They are automatically executed when an object is created, making object initialization simple and efficient. 🔹 This reduces the need for setting values manually after object creation. Understanding constructors helped me see how Java initializes objects in a structured and efficient way. #Java #OOP #Constructors #LearningJourney #Programming #TechSkills
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