🔥 Today’s Learning Update— #Day50 I am taking a small break as I reached half a milestone of this challenge. I am revisiting the problems and learning from the mistakes I made so far. Meanwhile I am sharing some core Java concepts I am learning. Can we overload the main() method? 💡 The answer Yes, we can overload the main() method just like any other method by changing the parameters. For example: main(String[] args) main(int[] args) main() 💡 But there is one important detail When we run a Java program, the JVM looks specifically for: public static void main(String[] args) This is the entry point. Any other overloaded main() methods are ignored by the JVM during startup. 💡 So what happens to the other methods? They behave like normal methods. If we want to use them, we have to call them explicitly from the main method. 🧠 What I learned today Java gives flexibility to overload methods, but the JVM is strict about where execution starts. So even if we define multiple main() methods, only one acts as the entry point, and the rest are just helper methods. #Java #CoreJava #Programming #SoftwareEngineering #LearningInPublic
Overloading main() method in Java
More Relevant Posts
-
Most people say “I’m learning backend.” But here’s what that actually means 👇 For the next few weeks, I’m focusing on Java Backend Development — not just syntax, but how real systems work. I’ll be learning: • How APIs handle real-world requests • How databases actually store and retrieve data • What happens behind the scenes when you click a button • How scalable systems are designed And most importantly: → I’ll be building projects (not just watching tutorials) I’m treating this like a public learning experiment. No shortcuts. No fake “I mastered everything” posts. Just: Learning → Building → Breaking → Fixing → Sharing If you're also on a similar path, let’s connect 🤝 #Java #BackendDevelopment #LearningInPublic #TechJourney
To view or add a comment, sign in
-
Day 16 of My Java Learning Journey Today, I explored an efficient and elegant approach to finding the median of a list using Java Streams. Instead of relying on traditional iterative logic, this solution leverages the power of functional programming to: • Sort the dataset • Dynamically identify the middle element(s) • Handle both odd and even-sized lists seamlessly • Compute the result using a concise and readable pipeline What makes this approach impactful is not just correctness, but clarity. With a few well-structured stream operations, we can express a problem that typically requires multiple conditional checks in a much cleaner way. This reinforces an important principle in modern Java development: writing code that is not only efficient, but also expressive and maintainable. Consistently practicing these patterns is helping me think in terms of data transformations rather than step-by-step instructions — a key mindset shift for building scalable applications. #Java #JavaStreams #FunctionalProgramming #CodingJourney #SoftwareDevelopment #CleanCode #Programming #Developers #TechLearning #BackendDevelopment #CodeDaily #LearningInPublic
To view or add a comment, sign in
-
-
☕ Java Journey @ Tap Academy | Day 43–44 🚀 From Functional Interfaces → Exception Handling 🔹 Mastered Lambda Expressions (Advanced) ✔️ Handling parameters & return types ✔️ Real-world functional interfaces: 🔸 Comparable 🔸 Comparator 🔸 Runnable (multi-threading base) 💡 Example: Demo d = (int i) -> { return i; }; ⚠️ New Topic: Exception Handling 📖 What is an Exception? 👉 An unusual event during runtime that causes program termination ❌ Without handling → App crashes ✅ With handling → Smooth user experience 🛡️ Exception Handling Flow: ➡️ JVM creates exception object ➡️ Runtime checks for try-catch ➡️ If not found → Default handler crashes program 🔧 Handling Techniques: ✔️ Single Try – Single Catch → Handles one exception type ✔️ Single Try – Multiple Catch → Different catch blocks for different exceptions ✔️ General Catch (Exception e) ⚠️ Must ALWAYS be at the END 💥 Exceptions Covered: 🔸 ArithmeticException 🔸 InputMismatchException 🔸 ArrayIndexOutOfBoundsException 🔸 NullPointerException 🔸 NegativeArraySizeException 🎯 Key Insight: Good developers don’t just write code — they handle failures gracefully. 📌 Real-world example: Apps like BookMyShow don’t crash on payment failure — they show meaningful messages. 💭 Final Thought: Exception handling = Building reliable & user-friendly applications #Java #TapAcademy #ExceptionHandling #Lambda #CodingJourney #LearnToCode #Developers #Programming #TechSkills
To view or add a comment, sign in
-
-
🚀 Day-49 @ Tap Academy | Mastering ArrayDeque & TreeSet in Java Today’s learning was all about understanding two powerful components of the Java Collection Framework: ArrayDeque and TreeSet — both designed to solve different real-world problems efficiently. 🔹 ArrayDeque (Double-Ended Queue) ArrayDeque is a resizable array implementation of the Deque interface, which allows insertion and deletion from both ends. 👉 Key Features: Faster than Stack and LinkedList for queue operations No capacity restrictions (dynamic resizing) Does not allow null elements Can be used as both Stack (LIFO) and Queue (FIFO) 👉 Common Methods: addFirst(), addLast() removeFirst(), removeLast() peekFirst(), peekLast() 👉 Use Case: Efficient for scenarios like task scheduling, undo operations, or sliding window problems. 🔹 TreeSet (Sorted Set Implementation) TreeSet is a part of the SortedSet interface and is backed by a Red-Black Tree. 👉 Key Features: Stores unique elements only Maintains natural sorting order (ascending by default) Does not allow null elements Provides log(n) time complexity for basic operations 👉 Common Methods: add(), remove() first(), last() higher(), lower() 👉 Use Case: Ideal when you need sorted data without duplicates, like ranking systems or leaderboards. 💡 Key Difference: ArrayDeque → Focuses on fast insertion/removal from both ends TreeSet → Focuses on sorted, unique data storage ✨ Learning these concepts strengthens my understanding of how to choose the right data structure for optimized performance. 📌 What’s your go-to collection in Java for performance-critical applications? #Day49 #JavaLearning #TapAcademy #DataStructures #JavaCollections #CodingJourney #SoftwareDevelopment #LearningInPublic #Developers #Programming #TechCareers
To view or add a comment, sign in
-
-
🚀 Deep Dive into LinkedList Hierarchy & Usage in Java As part of my continuous learning, I explored the hierarchy and real-world usage of LinkedList in Java — an essential concept in the Collections Framework. 🔹 Hierarchy of LinkedList Understanding the hierarchy gives clarity on how powerful LinkedList really is ✔️ LinkedList extends AbstractList ✔️ LinkedList implements both List and Deque interfaces ✔️ List extends SequencedCollection ✔️ Deque extends Queue ✔️ Queue & SequencedCollection extend Collection ✔️ Collection extends Iterable 🔹 Ways to Access Elements in LinkedList We can traverse LinkedList using multiple approaches: 🔸 For loop 🔸 For-each loop 🔸 Iterator 🔸 ListIterator 🔹 When to Use LinkedList? 📌 When working with heterogeneous data 📌 When duplicates are allowed 📌 Best suited for frequent insertions/deletions (especially at ends) 📌 Maintains order of insertion 📌 Supports null values 📌 Ideal for implementing: 🔹 Stack 🔹 Queue 🔹 Deque 💡 Key Takeaway: LinkedList is not just a data structure — it’s a flexible tool that adapts to multiple use cases, especially when dynamic data handling and frequent modifications are required. Consistency in learning these fundamentals is helping me build a strong base in Java 💻✨ #Java #LinkedList #CollectionsFramework #DataStructures #Programming #LearningJourney #KeepGrowing TAP Academy
To view or add a comment, sign in
-
-
Back to Basics: Mastering Java Foundations ☕🚀 Hello LinkedIn Fam! 👋 As someone pursuing my MCA 🎓, I’ve realized that no matter how advanced the tech stack gets — whether it’s MERN 🌐 or AI 🤖 — having a rock-solid foundation in Java ☕ is a game-changer for any software developer. I’ve been deep-diving into Java lately and compiled my Complete Java Foundation Notes 📚. From the internal workings of the JVM ⚙️ to the nuances of Memory Management 🧠, these notes cover essentials that every developer should have at their fingertips. Here’s what’s inside: 📝 How Java Works 🔄: Understand the journey from Source Code → Bytecode → Machine Code. JDK vs. JRE vs. JVM 🛠️: Clear the confusion once and for all. Memory Management 💾: Grasp Stack vs. Heap and how the Garbage Collector keeps things efficient. Data Types & Syntax 🧩: A refresher on the building blocks and strict typing rules. Key Features 🌟: Why "Write Once, Run Anywhere" (WORA) still rules the industry. Whether it’s for placement preparation 📝 or just strengthening your core CS fundamentals 💪, these basics are the pillars of robust software engineering. Excited to apply these concepts in my upcoming projects! 💻✨ #Java #Programming #MCA #SoftwareDevelopment #TechNotes #CodingCommunity #JVM #BackendDevelopment #LearningJourney
To view or add a comment, sign in
-
Today’s learning sprint 🚀 Dived into some core Java fundamentals that every developer should have crystal clear: 🔹 Data Types Understanding how real-world data is converted into binary and stored. Focused on integer types — byte, short, int, long — and how memory representation works. 🔹 Main Method The entry point of every Java program: public static void main(String[] args) Broke down each keyword and understood why it exists, not just memorizing it. 🔹 Object-Oriented Thinking Shifted perspective to seeing everything as objects: * Objects = State (data) + Behavior (methods) * Learned how Java uses new to create objects * Simple example: Car c1 = new Car(); 💡 Key takeaway: It’s not about memorizing syntax — it’s about understanding how things actually work under the hood. Grateful for the guidance and structured learning 🙌 Special thanks to TAP Academy and Bibek Singh for making these concepts clear and practical. Also grateful to Global Academy Of Technology Slowly building strong foundations, one concept at a time. #Java #Programming #CodingJourney #OOP #ComputerScience #LearningInPublic
To view or add a comment, sign in
-
-
Mastered the Core Fundamentals of Java and Program Execution: In this intensive learning phase, I’ve been mastering the building blocks of Java, focusing on how its architecture and core concepts come together to run efficient programs. I focused on understanding how code evolves from a high-level language into machine-executable instructions and how the JVM manages resources behind the scenes. 💡 Key Concepts Implemented: ✔ Evolution of Languages: Understanding the shift from low-level machine code to high-level, readable languages like Java and Python. ✔ Java Architecture (JRE & JVM): Exploring the "Write Once, Run Anywhere" philosophy through Bytecode and the Java Runtime Environment. ✔ Memory Management: Analyzing how the Stack and Heap work together for efficient data storage and the role of the Garbage Collector. ✔ OOP Pillars: Implementing Encapsulation, Abstraction, Inheritance, and Polymorphism to create scalable and modular code. ✔ Method Dynamics: Distinguishing between Instance, Static, and Abstract methods to define object behavior effectively. ✔ Program Lifecycle: Mapping the journey from source code (.java) to compiler (javac) to bytecode (.class) and finally to execution via the JVM. This exploration was a vital exercise in understanding the "why" behind the "how," ensuring a more technical and optimized approach to software development. Learning. Practicing. Improving. 🚀 Under the guidance of Raghu Sir and G.R NARENDRA REDDY sir in Global Quest Technologies #JavaProgramming #SoftwareDevelopment #ObjectOrientedProgramming #JVM #CodingJourney #TechLearning #JavaBasics
To view or add a comment, sign in
-
-
🚀 Day 4/30 – Real-World Java Development Today I didn’t focus on writing code, but on how I’m learning. One thing I’m understanding — learning backend development is not about covering more topics, but about understanding how things connect. Instead of jumping into new concepts every day, I’m trying to: - Revisit what I already know - Think about where it is used in real applications - Understand the “why” behind each concept It feels slower, but definitely more meaningful. Trying to build a strong base rather than rushing through topics 👍 #30DaysChallenge #BackendDevelopment #LearningJourney #Consistency
To view or add a comment, sign in
-
🚀 Day 1 of Teaching Java in Public | #30DaysOfJava Today, I started with the fundamentals of Java and created structured notes to make it easier for beginners to understand. ☕ 📌 What is Java? Java is a high-level, class-based, object-oriented programming language designed to be platform-independent. 💡 Key Highlights: ✔ Write Once, Run Anywhere (WORA) ✔ Powered by JVM (Java Virtual Machine) ✔ Secure, Robust, and Multithreaded 📘 What I Covered Today: 🔹 Introduction to Java 🔹 Basic Syntax (Hello World Program) 🔹 Overview of OOP Concepts 🔹 Data Types & Variables 🔹 Operators & Control Statements 🔹 Arrays, Methods, Classes & Objects 🧠 Teaching Insight: When concepts are organized visually (like in the notes below), learning becomes faster and more effective. 👉 If you're starting Java, this is all you need for Day 1. I’ll be sharing simplified Java concepts daily — follow along if you're learning too! 🙌 #Java #Teaching #LearnInPublic #CodingJourney #Developers #Beginners #Programming
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
Dharani Subramaniam Congratulations on hitting half century with your Posts!!!