Java Foundations: Class & Object Basics

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

  • graphical user interface, application

To view or add a comment, sign in

Explore content categories