Java Full Stack Journey: Classes, Objects & Coding Conventions

🚀 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

  • text

To view or add a comment, sign in

Explore content categories