🚀 Day 17 – Java Full Stack Journey | Classes, Objects & Coding Conventions Today’s session was not just about code. It was about thinking like a real software developer. 🔹 1️⃣ Class & Object – Core Revisited We implemented a real-world example: class Car { String name; float cost; float mileage; public void start() { System.out.println("Car is starting"); } public void accelerate() { System.out.println("Car is accelerating"); } public void stop() { System.out.println("Car is stopping"); } } Then created multiple objects: Car c1 = new Car(); Car c2 = new Car(); 💡 Key Understanding: Each object is stored in Heap Reference variables are stored in Stack Every object has its own independent state Changing c2.name does NOT affect c1.name This strengthened memory visualization: Stack Frame → Heap Object → Method Execution → Garbage Collection 🔹 2️⃣ Static vs Non-Static (Important Clarification) We understood why: Cannot make a static reference to a non-static method Main method is static. Non-static methods require object creation. This confusion is common — clarity here builds strong OOPS foundation. 🔹 3️⃣ Java Naming Conventions (Professional Coding Standards) Today we also learned something very important for interviews & real projects: ✔ Class → PascalCase CarDetails StudentRecord ✔ Methods & Variables → camelCase calculateTotal() studentName printSquare() Clean code is not optional in IT industry — it’s expected. 🔹 4️⃣ User-Defined vs Built-In Classes Examples of built-in classes: Scanner String Exception Thread We even explored the internal implementation of Scanner class inside Eclipse. Java has 5000+ built-in classes — You don’t memorize them. You learn how to use them effectively. 🔹 5️⃣ Bigger Picture – Why All This Matters Today’s reminder: Everything we’ve learned so far: Data Types Variables Methods Objects Memory Flow This is 70% of Java foundation. Advanced Java, Spring, Hibernate, Real Projects — Everything builds on this base. Weak basics = Struggle later Strong basics = Smooth growth 🚀 💡 Realization of the Day: Learning Java is not about finishing syllabus. It’s about: Consistency Practice Writing clean structured code Thinking like a developer Day 17 Complete ✔ #Day17 #Java #CoreJava #OOPS #StackAndHeap #FullStackJourney #LearningInPublic #JavaDeveloper #100DaysOfCode TAP Academy
Java Full Stack Journey: Classes, Objects & Coding Conventions
More Relevant Posts
-
🚀 Java Full Stack Development Journey | Day 10 Today, I learned about Java Object-Oriented Programming (OOP) – Classes and Objects, which are the core building blocks of Java. OOP helps in designing real-world applications by organizing code into reusable structures. 🔹 Key concepts I explored: • What is a Class in Java • What is an Object • Creating a class and object • Accessing class members (variables & methods) • Importance of OOP in real-world applications 💻 Simple Example: class Car { String brand = "Toyota"; void start() { System.out.println("Car is starting..."); } } public class Main { public static void main(String[] args) { Car myCar = new Car(); // Creating object System.out.println(myCar.brand); myCar.start(); } } ⚡ Why this matters: Classes and objects help model real-world entities in programs. They make code more modular, reusable, and easier to maintain, which is essential for building scalable applications. 📖 Continuing to strengthen my Java fundamentals step by step on my journey to becoming a Java Full Stack Developer. #Java #JavaLearning #OOP #FullStackDevelopment #Programming #CodingJourney #JavaDeveloper #LearningInPublic
To view or add a comment, sign in
-
🚀 Day 16 – Java Full Stack Journey | Methods (All 4 Types) & Memory Execution Deep Dive Today was about mastering one of the most powerful concepts in Java: 👉 Methods 👉 Parameters vs Arguments 👉 Stack & Heap execution flow Not just writing methods — but understanding how they execute inside memory. 🔹 The 4 Types of Methods in Java 1️⃣ No Input – No Output public void greet() { System.out.println("Hello World"); } 2️⃣ No Input – With Output public int add() { return 50 + 40; } 3️⃣ With Input – No Output public void add(int a, int b) { int c = a + b; System.out.println(c); } 4️⃣ With Input – With Output public int add(int a, int b) { return a + b; } This is the most commonly used type in real-world applications. 🔹 Important Terminologies ✔ Parameters → Variables declared in method signature ✔ Arguments → Values passed during method call Example: add(50, 40); int a, int b → Parameters 50, 40 → Arguments 🔹 What Happens in Memory? When a method is called: 1️⃣ A Stack Frame is created 2️⃣ Local variables are stored inside the stack 3️⃣ Objects are created inside the Heap 4️⃣ After execution → Stack frame is removed 5️⃣ Objects without references → Become Garbage 6️⃣ Garbage Collector cleans them automatically This follows LIFO (Last In, First Out) principle. Understanding this makes debugging and interviews much easier. 🔹 Real Power of Methods Instead of rewriting logic multiple times: printSquare(n); printSquare(n2); printSquare(n3); You write the logic once, reuse it multiple times. ✔ Code Reusability ✔ Clean Structure ✔ Reduced Code Duplication ✔ Better Maintainability 💡 Biggest Learning Today Java is not about memorizing syntax. It’s about: Understanding execution flow Knowing how memory behaves Writing reusable, structured logic These fundamentals build the foundation for: OOPS → Exception Handling → Collections → Multithreading → Real Projects Strong basics = Strong developer. Day 16 Complete ✔ #Day16 #Java #CoreJava #Methods #StackAndHeap #JVM #GarbageCollection #OOPS #FullStackJourney #LearningInPublic TAP Academy
To view or add a comment, sign in
-
-
🚀 AI Powered Java Full Stack Journey with Frontlines EduTech (FLM) – Day 8 📌 Core Java Logic & Handling Real-Time User Input Day 8 focused on strengthening Core Java fundamentals that are essential for backend logic and real-world application development. This session helped me understand how programs handle multiple conditions and user inputs dynamically. 🔹 Logical Operators Logical operators help combine multiple conditions in a program. Operators learned: && (AND) → True only when both conditions are true || (OR) → True if at least one condition is true ! (NOT) → Reverses the result of a condition These operators are widely used in validations, eligibility checks, and decision-making logic. 🔹 Dynamic User Input Another important concept was taking input from the user during program execution. This helps simulate real-world scenarios where applications interact with users and process their data. Learning this made programs feel more interactive instead of using fixed values. 🔹 Conditional (Ternary) Operator We also learned the ternary operator, which allows writing conditions in a shorter and cleaner way. Example: int max = (a > b) ? a : b; This improves code readability and reduces unnecessary lines. 🔹 Converting Problems into Java Logic A major focus of the session was understanding how to translate problem statements into Java code. This practice strengthens logical thinking and problem-solving skills. 🛠 Practical Practice Worked on simple decision-based programs such as: • Eligibility checking • Grade calculation • Basic validations using logical operators and user input These exercises helped me connect Java concepts with real-world scenarios. 🎯 Day 8 Takeaways ✨ Strong understanding of logical operators ✨ Handling dynamic user input ✨ Using ternary operator for concise logic ✨ Converting real-world problems into Java programs ✨ Writing cleaner and more maintainable code Each session is helping me build a stronger foundation in Java for future full stack development and real-time projects. Grateful for the continuous learning journey 🚀 Special thanks to Krishna Mantravadi, Upendra Gulipilli, and @Fayaz S for their guidance and clear explanations. #Java #CoreJava #JavaFullStack #ProgrammingLogic #LearningJourney #FrontlinesEduTech #Day8 #LearningInPublic
To view or add a comment, sign in
-
Day 32 at TAP Academy | toString() While revisiting some core Java concepts, I realized how many powerful design decisions are hidden in the fundamentals. Here are a few insights worth remembering: 🔹 The final Keyword final can be applied to variables, methods, and classes. • A final variable becomes a constant. • A final method cannot be overridden. • A final class cannot be extended, preventing inheritance. 🔹 Inheritance Constraints in Java Java supports single, multilevel, hierarchical, and hybrid inheritance, but it intentionally disallows multiple and cyclic inheritance. This design choice avoids the classic diamond problem, where ambiguity arises when two parent classes share the same method or property. 🔹 The Object Class – The Root of Everything Every class in Java ultimately inherits from the Object class. It provides 12 methods and a zero-argument constructor, forming the foundation of Java’s object hierarchy. 🔹 Important Methods from Object • toString() – By default returns ClassName@HexHashCode, but developers often override it to display meaningful object data. • clone() – Creates a duplicate object so changes in the copy do not affect the original. • equals() – Frequently overridden to compare object content instead of references. • finalize() – Deprecated since JDK 9 due to unpredictable behavior with garbage collection. 🔹 POJO (Plain Old Java Object) A well-structured POJO typically includes: • Private variables • A zero-argument constructor • A parameterized constructor • Getter and Setter methods 🔹 Is Java Truly Object-Oriented? Interestingly, Java is not purely object-oriented because it includes primitive data types like int and float, which are stored directly rather than as objects. To achieve a more object-centric approach, developers often use wrapper classes and factory methods like valueOf(). 🔹 Performance vs Purity Java keeps primitive types intentionally because creating objects is slower than assigning primitive values. This balance between performance and OOP purity is one of Java’s most pragmatic design choices. Sometimes the most powerful lessons in software engineering come from understanding why a language was designed the way it was. TAP Academy Sharath R Harshit T Sonu Kumar Dinesh K #Java #JavaDeveloper #ObjectOrientedProgramming #OOP #Programming #SoftwareEngineering #Coding #Developers #Tech #ProgrammingLife #LearnToCode #CodeNewbie #CodeDaily #SoftwareDevelopment #BackendDevelopment #TechCommunity #100DaysOfCode #DevelopersLife #JavaProgramming #CodingJourney #ProgrammingTips #CleanCode #SoftwareArchitecture #ComputerScience #TechEducation #Engineering #DevCommunity #CodeLife #ProgrammingLanguages #DeveloperMindset
To view or add a comment, sign in
-
🚀 AI-Powered Java Full Stack Journey (Day-4) — Structuring Java Programs Revisiting Day 4 from my December learning journey with Frontlines EduTech (FLM). This session helped me understand how Java organizes everything internally — from packages to methods — in a clean and systematic way. Here’s what I strengthened 👇 🏛️ Class — The Blueprint Everything in Java starts with a class. A class is a blueprint, and objects are the real-world instances created from it. One class can create multiple objects, making applications scalable and structured. 📦 Packages — Code Organization Packages are used to group related classes. They: ✔ Keep code organized ✔ Avoid naming conflicts ✔ Improve maintainability Syntax: package mypackage; We can create custom packages or use built-in ones. 📥 Import Statement — Accessing Other Packages To use a class from another package, we use the import statement. Example: import com.org.practice.Hello; import com.org.practice.*; If classes are in the same package, import is not required. This promotes modular and reusable design. 🧮 Variables — Data Storage Variables store data in memory. Types: • Local Variables — Inside methods • Instance Variables — Object-level • Static Variables — Class-level (shared across objects) Understanding scope clarified how memory is managed. 🔁 Methods — Reusability Methods allow us to write logic once and reuse it multiple times. Example: static void sum() { System.out.println(2 + 3); } They improve readability and reduce repetition. 🚪 main() Method — Entry Point Every Java application begins execution from: public static void main(String[] args) Without main(), the program cannot run. It acts as the starting point for the JVM. 💡 Day-4 Takeaways: ✔ Clear understanding of classes and objects ✔ Importance of packages ✔ Proper use of import ✔ Variable types and scope ✔ Methods for reusability ✔ Role of main() method Day 4 strengthened my understanding of how Java maintains structure and discipline in application development. Grateful for the continuous learning journey 🚀 Thanks to Krishna Mantravadi, Upendra Gulipilli, and Fayaz S for the clear and practical explanations. #Java #FullStackDeveloper #LearningInPublic #Day4 #JavaJourney #Upskilling #Programming #FrontlinesEduTech
To view or add a comment, sign in
-
#60DaysOfJava 📚 Day 13 💻 OOPS Why OOP is the foundation for learning languages like Java, C++, Python, and C#.? 👉 Object Oriented Programming (OOP) is a programming approach where we design programs using real world entities. 👉 This helps developers write code that is organized, maintainable, and easier to understand. 🔹 Why do we use OOP? 1️⃣ Simple and intuitive 👉OOP allows us to model real world objects, making it easier to design and understand code. 2️⃣ Manage large applications easily 👉 For each entity we can create a separate class. Example: OrderClass CartClass PaymentClass AddressClass 👉 Each class handles a specific responsibility, making the system more structured. 3️⃣ Easy maintenance 👉 If changes are made in one class, all related objects automatically reflect those changes. 🔹 Main Principles of OOP ✔ Inheritance –> Promotes code reusability. ✔ Encapsulation –> Protects data by restricting direct access. ✔ Polymorphism –> A single method can have multiple behaviors. ✔ Abstraction –> Hides unnecessary implementation details. 👉There are also additional design concepts like cohesion, aggregation, association, composition, and coupling, which help in designing better software systems. I will explain these in detail in future posts. 🔹 Class 👉 A class is a blueprint used to create objects. A class can contain: Properties / Attributes / Data Members Methods (Behaviors) Constructors Blocks (Instance & Static) Inner Classes 🔹 Object 👉 An object is an instance of a class. 👉 It represents a real-world entity and allows us to access the properties and methods of the class. 🔹 Properties & Methods Properties → Values or characteristics of an object Methods / Behavior → Actions that an object can perform Sample code in comment section 🤵 Follow Hariprasath V for daily more helpful resources. ♻ Repost Others also learn and grow together 👍 Hit if this was helpful. ✅ Save it future use. ================================================ #60DaysOfJavaWithHariprasathv6 #Java #JavaBasics #Programming #Coding #Developers #LearningJava #HighLevelDesign #SystemDesign #DSAChallenge #60DaysOfDSA #ProblemSolving #CodingJourney #Consistency #LearnByDoing #DataStructures #Algorithms #InterviewPrep #KeepCoding #Productivity #Focus #DreamBig #Java #SystemDesign #DataStructures #Algorithms #JavaDeveloper #DSA #CodingInterview #TechInterview #SystemDesignInterview #BackendDevelopment #SoftwareEngineering #JavaInterview #LeetCode #InterviewPrep #DataStructureAndAlgorithms #DesignPatterns #LowLevelDesign #Multithreading #SOLIDPrinciples #RESTAPI #BackendEngineer #CodeInterview #interviewtips #interviewexperience #Java #Programming #CoreJava #Learning #Developers
To view or add a comment, sign in
-
-
Java Full Stack Development – Day 13 | Tap Academy Topic Covered: 🔹 Pass by Value vs Pass by Reference 🔹 Different Types of Methods in Java 🔹 Memory Segments in Java (Stack, Heap, Static) 1️⃣ Pass by Value ✔ In Java, primitive variables are passed by value. ✔ A copy of the variable is sent to the method. ✔ Changes inside the method do not affect the original value. Example: int a = 1000; int b; b = a; System.out.println(a); System.out.println(b); Output 1000 1000 2️⃣ Pass by Reference (Objects) ✔ Object reference is passed to methods. ✔ Changes made to the object affect the original object. Example: Car c1 = new Car(); c1.name = "MARUTHI"; c1.noOfSeats = 5; c1.cost = 8.66f; System.out.println(c1.name); System.out.println(c1.noOfSeats); System.out.println(c1.cost); Output MARUTHI 5 8.66 3️⃣ Different Types of Methods Java methods are classified into 4 types: 1️⃣ No Input – No Output 2️⃣ No Input – Output 3️⃣ Input – No Output 4️⃣ Input – Output These help in structuring programs and improving code reusability. 4️⃣ Memory Segments in Java Java uses different memory areas: Static Segment • Stores static variables. Stack Segment • Stores method calls and local variables. • Each method has its own stack frame. Heap Segment • Stores objects created using new. Example Concept: class Calculator { int a = 50; int b = 40; void add() { int c = a + b; System.out.println(c); } } ✔ Object stored in Heap ✔ Method execution stored in Stack Conclusion Today’s session helped in understanding how Java handles data passing, method types, and memory management, which are fundamental concepts for becoming a strong Java Full Stack Developer. #Java #JavaFullStack #TapAcademy #Programming #JavaDeveloper #CodingJourney #LearnJava #FullStackDeveloper #SoftwareDevelopment #JavaLearning
To view or add a comment, sign in
-
-
🚀 AI-Powered Java Full Stack Journey_(Day-2) — Strengthening the Core Concepts As I continue revisiting my Java Full Stack learning journey with Frontlines EduTech (FLM), I reflected on what I learned on Day 2 back in December 2025. If Day 1 was about understanding the basics of programming, Day 2 was about understanding why Java stands strong even today. Here’s what deepened my foundation that day 👇 🔹 Platform Independence — “Write Once, Run Anywhere” One of the most powerful features of Java is its platform independence. Java source code is compiled into bytecode, which runs on the JVM (Java Virtual Machine). As long as a system has JVM, the same code can run anywhere without modification. This concept completely changed how I viewed software portability and scalability. 🔹 Object-Oriented Programming (OOP) — Thinking in Real-World Models Java follows Object-Oriented principles such as Classes, Objects, and Reusability. I learned that: A Class is like a blueprint An Object is a real-world instance created from that blueprint Understanding this helped me see how large applications are structured in a clean and maintainable way. It wasn’t just coding anymore — it was designing systems logically. 🔹 Strictly Typed Language — Discipline in Coding Java enforces datatype rules strictly. Once a variable is declared with a datatype, it cannot randomly change. This may seem small, but it prevents logical errors and improves code reliability. That day I understood how discipline in programming leads to stability in applications. 🔹 Robust and Secure Architecture Another key takeaway was how Java handles errors using exception handling mechanisms. Instead of crashing abruptly, Java allows developers to manage errors gracefully. This ensures: ✔ Stable applications ✔ Better user experience ✔ Improved security I realized that strong backend systems are built on controlled error handling and security practices. 💡 What Day 2 Strengthened in Me: ✔ Clear understanding of platform independence ✔ Strong grasp of OOP fundamentals ✔ Appreciation for type safety ✔ Insight into Java’s robustness and security Looking back, these concepts may seem foundational — but they form the backbone of every enterprise-level Java application. Revisiting these lessons reminds me how important strong fundamentals are in becoming a confident Full Stack Developer. Grateful for the continuous learning experience and excited to keep growing 🚀 A big thanks to Krishna Mantravadi and my mentor Fayaz S for their guidance and support throughout this journey 🙏 #Java #FullStackDeveloper #TechJourney #LearningInPublic #JavaJourney #Upskilling #OOP #Programming #FrontlinesEduTech #Day2
To view or add a comment, sign in
-
Day 34 of Sharing What I’ve Learned 🚀 Inheritance in Java — Reusing Code Like Real-World Generations 🧬⚙️ Most beginners hear the word inheritance and think of parents and children… 👉 But in software, inheritance is about reusing power that already exists. I have learned that how inheritance makes large applications scalable, maintainable, and efficient. 🔹 What is Inheritance? Inheritance is the mechanism where one class acquires the properties and behaviors of another class. 👉 One class builds upon another instead of starting from scratch. Syntax (Java): class Child extends Parent { } 🔹 Real-World Analogy 🏡 In real life, children inherit features, wealth, or property from parents. Similarly in programming: ➡️ The parent class provides common functionality ➡️ The child class reuses and extends it ➡️ No need to rewrite existing logic This makes development faster and cleaner. 🔹 Parent vs Child Terminology 🎯 PARENT CLASS ✔ Superclass ✔ Base class ✔ Contains common data & behavior CHILD CLASS ✔ Subclass ✔ Derived class ✔ Extends parent functionality 🔹 Example — Bank Account System 🏦 Imagine a base class representing a bank account: class BankAccount { int accountNumber = 12345; int pin = 789; } Now another class inherits it: class Hacker extends BankAccount { } Even though Hacker has no variables of its own… 👉 It can still access the parent’s data because of inheritance. 🔹 Why Inheritance Exists 💡 Without inheritance: ❌ Duplicate code everywhere ❌ Hard to maintain ❌ Slower development With inheritance: ✅ Code reusability ✅ Reduced development time ✅ Cleaner architecture ✅ Easier maintenance ✅ Real-world modeling 🔹 Key Advantages 🚀 🧩 Code Reusability Reuse existing logic instead of rewriting ⏱ Faster Development Build new features on top of old ones 💰 Higher Productivity Less effort → more output 🧠 Better Design Organizes complex systems into hierarchies 🔹 Important Rule ⚠️ Not everything gets inherited. 👉 Private members do NOT participate in inheritance This protects data — reinforcing encapsulation. 🔹 Types of Inheritance (Java Overview) ✔ Single Inheritance ✔ Multilevel Inheritance ✔ Hierarchical Inheritance ✔Hybrid Inheritance (Java does NOT support multiple inheritance with classes.) 🧠 Why This Matters Inheritance is one of the four pillars of OOP, along with: ✔ Encapsulation ✔ Abstraction ✔ Polymorphism 👉 Mastering inheritance is essential for backend systems, frameworks, and large-scale applications. 💡 Key Takeaway Great developers don’t rebuild everything… They build on top of what already works. 👉 Inheritance turns existing code into a foundation for innovation 🚀 #Java #CoreJava #OOP #ObjectOrientedProgramming #Programming #SoftwareEngineering #BackendDevelopment #CodingJourney #TechLearning #Developers #cfbr #100DaysOfCode #DeveloperCommunity #Day34 Grateful for the guidance from Sharath R, Harshit T, TAP Academy
To view or add a comment, sign in
-
-
🚀 Day 11 – Mastering Methods, Return Statements & Logical Problem Solving in Java Today’s focus was on writing cleaner, reusable, and structured Java code using methods, arguments, and return statements. Instead of solving problems in a single block inside main(), I concentrated on breaking logic into well-defined methods — making the code more modular and closer to real-world application design. 🧩 What I Worked On: Solved multiple logical challenges with different difficulty levels, including: • Multiplication Table Generator • Sum of Odd Numbers from 1 to N • Factorial Calculator using Functions • Sum of Digits of an Integer • Additional number-based logical problems Each solution was implemented using proper method creation and structured flow control. 🛠 Concepts Applied: ✔ Method Creation & Reusability ✔ Return Statements for Result Handling ✔ Parameter Passing (Arguments) ✔ Looping Constructs (for / while) ✔ Conditional Logic (if-else) ✔ Clean Code Organization ✔ Console-Based Program Execution 🔎 Key Learning Outcomes: • Understood how to design reusable methods instead of writing repetitive code • Improved logical thinking by solving multi-step problems • Learned proper separation of concerns inside small applications • Strengthened foundation in function-based programming • Practiced writing readable and maintainable code This day helped me move from just “writing code” to structuring code properly. Building strong Core Java fundamentals step by step before advancing into Collections Framework, Exception Handling, and Backend Development 🚀 #100DaysOfCode #Java #CoreJava #ProblemSolving #JavaDeveloper #SoftwareDevelopment #BackendDevelopment #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