Learning Update 🚀 Today I learned about Java Methods and Memory Execution Flow. 🔹 4 Types of Methods • No input, No output • No input, Output • Input, No output • Input, Output 🔹 Method Structure Access modifier + Return type + Method name + Parameters + Method body 🔹 Parameters vs Arguments Parameters → Defined in method Arguments → Passed while calling 🔹 Stack & Heap Concept • Method call → Stack frame created (LIFO) • Objects → Stored in Heap • No reference → Garbage collected automatically 🔹 Pass by Value Primitive data types are passed by value when calling methods Today’s session helped me clearly understand not just syntax, but how Java programs execute internally in memory. #Java #CoreJava #LearningUpdate #OOP #Programming TAP Academy
Java Methods & Memory Execution Flow Explained
More Relevant Posts
-
📚 Today’s Learning Highlight – Java Encapsulation & Constructor Chaining 🚀 Today I explored one of the most important OOP concepts in Java — Encapsulation — which helps protect data and provides controlled access using private variables along with getters and setters. 🔹 Key Takeaways: • Understood how encapsulation improves data security and code maintainability • Learned about constructor chaining and how constructors call one another step-by-step using the this keyword • Explored the difference between this keyword usage and normal function calling, making object initialization clearer and more structured 💡 Every small concept in Java builds a strong programming foundation. Excited to keep learning and applying these concepts in real projects! #Java #OOP #Encapsulation #ConstructorChaining #ProgrammingJourney #LearningEveryday #TAP ACADAMY
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
-
Day 8 of My Java Learning Journey ☕💻 Today I continued strengthening my core Java fundamentals and focused on understanding Method Overloading and basic Inheritance concepts. What I practiced today: • Implemented method overloading by creating an Area Calculator for Square, Rectangle, and Circle • Learned how Java decides which method to call at compile time (Compile-Time Polymorphism) • Practiced taking user input using the Scanner class • Explored the basics of Inheritance using parent and child classes • Understood how child classes can access methods from parent classes One key takeaway today: Writing small programs helps reinforce concepts much better than just reading theory. Next on the learning roadmap: • Method Overriding • Runtime Polymorphism • Deeper understanding of Object-Oriented Programming in Java Step by step, building stronger backend fundamentals. #Java #LearningInPublic #Programming #BackendDevelopment #100DaysOfCode #JavaDeveloper
To view or add a comment, sign in
-
Today’s Learning Update ✅ In today’s session, I strengthened some of the most important Java foundations that everything else depends on. 📌 Key learnings: Understood how Class & Object work with a simple Car example (state + behaviour). Practiced creating instance variables (name, cost, mileage) and accessing them using reference (obj.variable). Learned how to call methods correctly like start(), accelerate(), stop() and why println(obj.start()) gives an error when the method return type is void. Got clear clarity on default values in Java: String → null float → 0.0 Learned how multiple objects of the same class have separate memory, so changing one object won’t affect the other. Understood the Stack vs Heap concept with memory diagram explanation (how objects are stored in heap and method calls go to stack). Clarified static vs non-static: Static cannot directly access non-static methods For non-static methods, we must create an object Improved code readability by learning Java naming conventions: Class names → PascalCase Methods & variables → camelCase Learned Eclipse shortcut: Ctrl + Shift + O to auto-import packages. Explored built-in classes like Scanner and understood that Java has thousands of built-in classes—focus is on learning usage, not memorizing everything. ✅ Feeling more confident because these basics are the backbone for Arrays, Strings, OOP concepts, and Advanced Java. #LearningUpdate #Java #CoreJava #OOP #Programming #CodingJourney #Placements TAP Academy
To view or add a comment, sign in
-
-
🚀 Java Concepts Made Simple (Visual Notes) While learning Java, I created my own notes to understand concepts like: • JVM & JRE • Platform Independent Programming • Classes & Objects • Variables & Data Types • Naming Conventions • Type Casting Later I enhanced these notes using AI to make them cleaner and more readable, so anyone starting with Java can understand them easily. Swipe through the slides to explore the concepts 📚 If you are learning Java, save this post for revision. Anshika Sinha Sonam Yadav Roshani Kumari #java #programming #coding #javadeveloper #learnjava #computerscience #codingjourney
To view or add a comment, sign in
-
As part of my Core Java learning @ TAP Academy, Today I learned different types of arrays and their structure and disadvantage of arrays. 🔹 1️⃣ Regular (Rectangular) Array All rows have the same number of columns. Memory structure is fixed and uniform. Example: int[][] arr = new int[3][3]; 🔹 2️⃣ Jagged Array Rows can have different numbers of columns. Memory is allocated dynamically for each row. Example: int[][] arr = new int[3][]; arr[0] = new int[2]; arr[1] = new int[4]; arr[2] = new int[3]; 🔎 Disadvantages of Arrays: • Fixed size (cannot grow or shrink after creation) • Stores only homogeneous data (same data type) • Insertion and deletion operations are costly • Memory may be wasted if size is not properly utilized Understanding these concepts helps in choosing the right data structure for efficient programming. TAP Academy #Java #CoreJava #Arrays #DataStructures #FullStackDeveloper #LearningJourney
To view or add a comment, sign in
-
-
🚀 Day 05 – Java Learning Journey Today’s focus was on Data Types & Number Systems in Java – building a strong foundation for writing efficient and optimized code. 🔹 Explored Primitive Data Types – byte, short, int, long, float, double, char, boolean 🔹 Understood their ranges and memory allocation 🔹 Learned Binary concepts – Base-2 conversions, 1’s & 2’s complement 🔹 Differentiated between ASCII & Unicode (why char in Java uses 2 bytes) 💡 Key Takeaway: Choosing the right data type is not just about storing values — it directly impacts memory usage and program performance. Every small concept strengthens the foundation for advanced programming. Consistency and practice are making the journey more exciting each day! #Day5 #Java #Programming #DataTypes #NumberSystems #TapAcademy #CodingJourney #LearningEveryday
To view or add a comment, sign in
-
-
🚀 Day 19 of Java Learning at TAP Academy Today we completed some core Java concepts and stepped into Object-Oriented Programming (OOP) — where coding starts connecting with real-world logic. Key Learnings: 🔹 Method Overloading — compiler decides based on parameter type & count (type promotion + ambiguity concepts). 🔹 main() Method — can be overloaded, but JVM runs only the standard version automatically. 🔹 Command Line Arguments — inputs from terminal are always treated as Strings. 🔹 4 Pillars of OOP — Encapsulation, Inheritance, Polymorphism, Abstraction. 🔹 Encapsulation — using private + getters/setters to protect and control data (Bank Account analogy). 💡 Takeaway: OOP builds step by step, so consistency and practice are essential. #Java #OOP #LearningJourney #Programming #TapAcademy Thank you, Sharath R sir, for this beautiful session
To view or add a comment, sign in
-
-
Day 38 of My Java Learning Journey Today I explored an important Object-Oriented Programming concept: Aggregation and Composition. Both represent “Has-A” relationships between objects, but they differ in how strongly objects depend on each other. 🔹 Aggregation (Loose Coupling) One object contains another object. The contained object can exist independently. Example: Mobile and Charger A charger can exist even without a mobile. 🔹 Composition (Tight Coupling) One object is strongly dependent on another. The contained object cannot exist independently. Example: Mobile and Operating System (OS) An OS cannot function without the mobile. 📌 Key Idea Aggregation → Loose bound Has-A relationship Composition → Tight bound Has-A relationship 💻 What I Practiced Today ✔ Created classes for OS, Charger, and Mobile ✔ Implemented Has-A relationships using objects ✔ Understood how composition and aggregation work in real code ✔ Practiced with a UML diagram representation 🧠 Real-world Example A Student has a Heart and Brain → Composition (cannot exist separately) A Student has a Bike or Book → Aggregation (can exist independently) #Java #OOP #Programming #JavaDeveloper #LearningJourney #ObjectOrientedProgramming #Aggregation #Composition
To view or add a comment, sign in
-
-
🚀 Java Learning Challenge — Day 4/7 📘 Today’s Topics: ✔️ Method Creation ✔️ Parameters ✔️ Return Types ✔️ Method Overloading 🛠️ Mini Project: Student Result System → Calculated total and average using methods. 💡 What I learned: Methods help organize code and enable data sharing between different parts of a program. Step by step progress… more to come! 💻✨ #JavaLearningChallenge #Day4 #Java #CodingJourney
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