📘 Today’s Java Learning Update Today I explored some important core Java concepts that strengthened my fundamentals: ✅ Can the main method be overloaded? Yes, the main method can be overloaded, but the JVM always starts execution from public static void main(String[] args). ✅ Passing arguments to the main method Learned how to pass command-line arguments and access them using the String[] args parameter. ✅ Introduction to OOP Concepts Started learning the 4 pillars of Object-Oriented Programming: Abstraction Inheritance Polymorphism Encapsulation ✅ Encapsulation in detail Understood how data can be protected using: private variables getter and setter methods for controlled access 📌 Consistently building strong fundamentals, one concept at a time. Excited to keep learning and growing in Java 🚀 #Java #CoreJava #OOP #Encapsulation #Programming #LearningJourney #SoftwareDevelopment #JavaDeveloper
Java Fundamentals: Main Method Overloading and OOP Concepts
More Relevant Posts
-
🚀 Day – Java Learning Update ⏳ 🎯 Understanding Looping Statements: For Loop in Java Today, I learned about Looping Statements in Java, specifically the for loop. Loops help execute a block of code multiple times without writing the same code repeatedly. What is a For Loop? A for loop is used when the number of iterations is known in advance. It combines initialization, condition, and increment/decrement in a single statement. Initialization – starting point of the loop Condition – determines how long the loop runs Increment/Decrement – updates the loop variable Syntax of For Loop: for(initialization; condition; increment/decrement) { // code to execute repeatedly } Task: Find the factorial of a num from 1 to 30 #Java #JavaFullStack #CoreJava #ForLoop #Programming #SoftwareDeveloper #BackendDeveloper #LearningJourney 10000 Coders Meghana M
To view or add a comment, sign in
-
-
🚀 Learning Update: Sorting Custom Objects Using ArrayList in Java Today I worked on an interesting Java concept — sorting custom objects stored in an ArrayList. In real-world applications, we often deal with objects like Students, Employees, or Products instead of primitive data types. Learning how to sort these objects efficiently is an important skill for writing clean and scalable code. 🔹 What I learned: ✅ Creating a custom class with attributes ✅ Storing objects inside an ArrayList ✅ Sorting objects using Comparator with lambda expressions ✅ Writing cleaner and more readable Java code Here’s a simple example I practiced: 💡 Key takeaway: Java provides powerful tools like Comparator and lambda expressions that make sorting objects flexible and easy without modifying the original class. Every day learning something new and strengthening my Java fundamentals 💻✨ #Java #Programming #LearningJourney #SoftwareDevelopment #JavaDeveloper #Coding #Collections #OOP
To view or add a comment, sign in
-
-
Day 4 of my Java learning journey 💻✨ Today I learned about Arrays in Java and how they are used to store multiple values in a single variable. This helped me understand how programs handle and process a collection of data efficiently. I also practiced using loops with arrays, which made it easier to access and work with each element step by step. Here’s what I focused on today: 🔹 Understanding what arrays are and why they are used 🔹 Creating and initializing arrays in Java 🔹 Using loops to read and display array elements 🔹 Applying logic to solve basic array problems I worked on programs such as: Finding the sum of array elements Identifying the largest element in an array Printing all elements stored in an array Learning arrays really improved my understanding of how data can be organized and processed in programming. Step by step, I’m building stronger fundamentals in Java. Next step: Starting Object-Oriented Programming (OOP) in Java. #Java #Day4 #ProgrammingJourney #LearningInPublic #Coding
To view or add a comment, sign in
-
-
🚀 Today’s Learning in Java – Encapsulation Today I explored one of the most important OOPS concepts in Java: Encapsulation. Encapsulation is the process of protecting important data inside an object and allowing controlled access to it. We achieve this by: 🔹 Using the private keyword to secure variables 🔹 Accessing data through getter and setter methods 🔹 Initializing values using constructors I also learned: ✔ Constructors are special methods used to initialize objects ✔ Two main types: • Zero-parameter (default) constructor • Parameterized constructor ✔ If we don’t create a constructor, Java automatically provides a default constructor ✔ Constructors are called at the time of object creation Step by step, I’m building a strong foundation in Java and OOPS. Excited to keep learning and growing every day! 💻✨ #Java #OOPS #Encapsulation #Programming #CodingJourney #Learning #SoftwareDevelopment #TechStudents #FutureDeveloper #TAP ACADEMY
To view or add a comment, sign in
-
-
One of the most interesting concepts while learning Java is the automatic memory management by the JVM through Garbage Collection. To enhance my understanding of this topic, I created structured notes on Java memory management. Organizing these notes has clarified how objects become eligible for garbage collection and how the JVM manages memory cleanup. I'm sharing this document to assist other Java developers or students in their learning journey. It covers essential Java Garbage Collection concepts, including: - Ways objects become eligible for GC, such as nullifying references, reassigning references, method-scope objects, and Island of Isolation. - Methods to request garbage collection using System.gc() and Runtime.gc(). - The role of the finalize() method and how the JVM performs cleanup before destroying objects. Feel free to use it, and I hope it aids you in your Java learning experience. #Java #JavaDeveloper #GarbageCollection #JVM #Programming #JavaNotes
To view or add a comment, sign in
-
Day 27.. 💡 Today’s Learning: Method Overloading in Java Today, I explored Method Overloading in more depth! 🚀 🔹 What is Method Overloading? Method Overloading allows a class to have: ✅ Same method name ✅ Different parameters The Java compiler differentiates overloaded methods based on: 1️⃣ Number of parameters 2️⃣ Data types of parameters 3️⃣ Sequence of parameters 4️⃣ Implicit typecasting 👉 The compiler also considers implicit typecasting while resolving overloaded methods, which can sometimes lead to ambiguity if multiple methods match. 🔎 Bonus Insight: Yes, the main() method can be overloaded in Java. However, the JVM always starts execution from the standard signature: public static void main(String[] args) Any overloaded version must be called manually. ✨ Key Takeaway: Method Overloading improves code readability, reusability, and flexibility, making it a powerful concept in Java’s Object-Oriented Programming. Learning something new every day! 💪 #Java #OOP #MethodOverloading #Programming #LearningJourney #JavaDeveloper
To view or add a comment, sign in
-
-
Day 1 – Learning Encapsulation (OOP-Revised) Today I revised about Encapsulation in Java. Encapsulation is a process of: • Packaging variables and methods into a single unit (class) • Protecting data by declaring them as private. In normal words encapsulation means we hide the data and only allow access through special methods like getters and setters. This helps: 1. keep data safe 2. avoid direct unwanted changes 3. make code more organized 4.reusability 5.code can modified without breaking the code It feels simple, but I realized this is one of the core foundations of Object-Oriented Programming. Learning step by step #Java #OOP #Encapsulation #DailyLearning #CSEStudent
To view or add a comment, sign in
-
🚀 Learning Java: Adding Arrays Today I practiced array addition in Java. Array addition means adding the corresponding elements of two arrays that have the same size and storing the result in a new array. This is usually done using a loop that goes through each index and performs the addition operation. It is a simple concept, but it helps in understanding array traversal, indexing, and basic data processing in Java. Practicing these small programs strengthens logical thinking and improves programming skills. 💻 #Java #Programming #CodingPractice #LearningJava #Arrays
To view or add a comment, sign in
-
-
🚀 Java Learning Journey – Day 7 Today’s learning focused on strengthening the understanding of methods in Java, especially the difference between static methods and instance methods. Key takeaways from today: ✔ Understanding how instance methods belong to objects and require object creation ✔ Learning that static methods belong to the class and can be accessed without creating objects ✔ Exploring how the JVM manages methods and objects in memory ✔ Understanding when to use static vs non-static methods in real programs A key realization today: Java becomes much clearer when concepts like memory behavior and method usage are understood logically, not just syntactically. Tomorrow’s focus: • Begin hands-on coding practice in IntelliJ • Implement small programs using methods • Strengthen understanding through practical exercises Consistent learning, one step at a time. #Java #LearningJourney #JavaDeveloper #Programming #BackendDevelopment #SoftwareEngineering
To view or add a comment, sign in
-
🚀 Java Learning Journey – Interesting Concept While learning Java, I came across an important concept: 👉 Why is String immutable in Java? In Java, once a String object is created, its value cannot be changed. This design helps Java in several ways: • Improves security for sensitive data • Enables String Pool for memory optimization • Provides thread safety in multi-threaded environments • Ensures better performance when used as keys in HashMap Understanding these core concepts helps build a stronger foundation in Java development. What other Java concepts do you think every developer should know? #Java #JavaDeveloper #Programming #Coding #SoftwareDevelopment #LearningInPublic
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