📘 Object Oriented Programming (OOP) – Java | Day 4 📅 08/01/2026 Today I revised the core fundamentals of Object Oriented Programming (OOP) in Java and converted my handwritten notes into a clean visual format ✨ Here’s a quick summary of what I learned 👇 🔹 Object Orientation Representing real-world things as objects with: - Properties (HAS) - Behaviors (DOES) 🔹 Real-world Example – Car 🚗 - Properties: Name, Color, Cost, Mileage - Behaviors: start(), accelerate(), stop() 🔹 Class vs Object - Class → Blueprint / Design (Imaginary) - Object → Real-world entity 🔹 Rules of Object Orientation ✔ World is a collection of objects ✔ Every object belongs to a class ✔ Every object has State & Behavior 🔹 One Class → Many Objects All objects share the same structure, but each object has its own data & memory. 🔹 JVM (Java Virtual Machine) - Converts bytecode into machine-level code - Creates objects in Heap Memory using "new" keyword Building strong foundations in Java, one concept at a time 🚀 Learning in public to stay consistent and grow better every day. #Java #OOP #CoreJava #JVM #Programming #LearningInPublic #FullStackDeveloper #JavaDeveloper
Java OOP Fundamentals: Classes, Objects & JVM
More Relevant Posts
-
🔒 Encapsulation in OOP Encapsulation means wrapping data and methods together in a single unit (class) and protecting data from direct access. In Java, we achieve encapsulation using: ✔ private variables ✔ public getters and setters ✨ Why Encapsulation? 🔹 Keeps data safe 🔹 Improves code control 🔹 Makes programs easier to maintain Encapsulation helps write secure and clean code, which is why it’s a core concept of OOP and Core Java. #Encapsulation #OOP #CoreJava #JavaBasics #ProgrammingConcepts #LearningJava
To view or add a comment, sign in
-
-
Day 3 of Java From Code to Memory 🧠💻 Today things got REAL. No more JVM theory. No more architecture talk. Today I learned how Java actually stores data inside memory. 👉 Variables. Sounds simple… but it’s powerful. When we write: int age = 21; Java doesn’t just “remember” 21. It: • Reserves space in memory • Decides how many bits to allocate • Stores the value in binary (0s & 1s) • Links it with the name age That moment when you realize… Programming = Managing Memory 🔥 Also understood: Java is statically typed. You must declare the data type first. No mixing random data. Strict but safe. Explored the 8 primitive data types: byte, short, int, long float, double char boolean And yes double wins over float for precision 👀 Biggest takeaway? Behind every simple line of code… there’s memory allocation, bits, and logic working silently. Day 3 and the foundation is getting stronger. We’re not just writing code anymore we’re understanding how machines think. Consistency > Motivation 🚀🔥 Special thanks to Aditya Tandon Sir & Rohit Negi Sir 🙌 #Java #CoreJava #LearningInPublic #Programming #Developers #BuildInPublic
To view or add a comment, sign in
-
-
📁 File Handling 🌊ByteStreams = flow of data as bytes 👉 Byte streams handle raw bytes 🧱 👉 FileInputStream → read 📥 👉 FileOutputStream → write 📤 👉 read() returns -1 at EOF 🛑EndOfFile 👉 Temp variable avoids skipping bytes 🔁 👉 String ➝ getBytes() → byte[] 🔄 👉 Append mode using true ➕ • read() returns 0–255 or -1, so return type is int • int -1 allows JVM to safely signal EndOfFile 🧠 java.io.File 📦 is the package that imports File Class ⚠️ Why try-catch exists • Files live outside JVM 💽 • JVM can’t guarantee file exists, path is valid, or permission is granted 🚫 • So Java forces you to handle risk using checked exceptions 🛡️ • Byte streams → raw data 🧱 • Character streams → text + encoding 📝 👉 Byte streams move raw bytes between JVM and external systems of any format Byte streams deal with bytes, character streams deal with characters using encoding. GitHub Link: https://lnkd.in/eur5pBx4 🔖Frontlines EduTech (FLM) #Java #FileHandling #Streams #BackendDevelopment #JVM #LearningInPublic #ResourceManagement #AustraliaJobs #SwitzerlandJobs #NewZealandJobs #USJobs #BackendDevelopment #Programming
To view or add a comment, sign in
-
-
🚀 Object-Oriented Programming (OOP) I created a beginner-friendly presentation on Object-Oriented Programming concepts using Java. Object-Oriented Programming (OOP) is a programming approach that uses real-world objects to organize code🧩 It helps make programs easy to understand 📘, reusable 🔁, and easy to maintain 🛠️. Java uses OOP to build secure 🔐 and scalable 📈 applications. Java mainly uses four OOP concepts. 🔐 Encapsulation – Hiding data and controlling access through methods 🧬 Inheritance – Reusing properties and methods from existing classes 🔁 Polymorphism – One method behaving differently in different situations 🎭 Abstraction – Showing only essential details and hiding complexity This helped me build strong Java fundamentals. More info - https://lnkd.in/gcv6KP4C #Java #OOP #Programming #SoftwareEngineeringStudent #LearningJourney #objectorientedprogramming
To view or add a comment, sign in
-
🔥Evolution of Passing Behavior in Java 🔷 From Classes → Anonymous → Lambda Earlier in Java, if you wanted a thread to do some work, you had to: 📦 Create a separate class 🧩 Implement Runnable 🔌 Inject it into Thread 🚀 Then start execution A lot of structure… for a very small behavior. Then Java allowed anonymous classes Now the behavior lives near the usage — no extra file, less ceremony. Finally came lambda expressions The behavior itself became the parameter: new Thread(() -> System.out.println("Running")).start(); No class No boilerplate Just intent This is called: 👉 Passing behavior as data (or) 👉 Behavior Parameterization You are no longer passing objects — You are passing what the program should do. Why it matters Code moved from structure-heavy → intent-focused Class → Anonymous Class → Lambda Boilerplate → Inline behavior → Pure logic 💡 Modern Java is not about creating more classes. It is about expressing behavior directly. GitHub Link: https://lnkd.in/gXbZtwSq 🔖Frontlines EduTech (FLM) #java #coreJava #threads #BackendDevelopment #Programming #CleanCode #ResourceManagement #AustraliaJobs #SwitzerlandJobs #NewZealandJobs #USJobs #FunctionalProgramming #BehaviorParameterization #LambdaExpressions #AnonymousClasses #Runnable #Multithreading #Java8 #Refactoring #OOPDesign
To view or add a comment, sign in
-
-
Advanced Java – Day 1 Day 1 was less about “advanced” stuff and more about getting into the core •Revisited the basics that actually matter: •How Java works internally (source code ➡️ bytecode ➡️JVM) •Why Java is platform independent •Difference between JDK, JRE, and JVM •Primitive vs non-primitive data types •Core OOP concepts like class, object, encapsulation, abstraction, and polymorphism •How memory works (stack, heap, static, string pool) I also practised these concepts by building a simple calculator program to understand how logic, methods, and objects actually come together and a constrain based if-else problem. Seeing it run made things clearer. Looking forward to learning more step by step. #Java #LearningInPublic #AdvancedJava #ProgrammingBasics #StudentLife #Consistency
To view or add a comment, sign in
-
-
Day 9 of 100 | Encapsulation Today I worked on Encapsulation in Java — and it made more practical sense than ever. Encapsulation isn’t just a definition. It’s about: ✔ Keeping variables private ✔ Controlling access using getters and setters ✔ Preventing unwanted changes to data In simple terms, it’s Java saying: “Access allowed… but only in the right way.” 😄 Small concept on paper, but it changes how you design programs. Step by step, writing cleaner and safer code #Day9 #100DaysOfCode #Java #OOP #Encapsulation #LearningInPublic #BackendJourney
To view or add a comment, sign in
-
-
Day 2/30 🚀 Consistent Progress > Occasional Motivation Documenting my learning journey in Core Java with a focused deep dive into: 🔹 Method Overloading 🔹 Compile-Time Polymorphism 🔹 Static Binding & Early Binding 🔹 Type Promotion 🔹 Ambiguity Scenarios 🔹 Real-time examples from println() & substring() This revision cheat sheet is part of my structured daily practice — not just understanding the definition, but learning: ✅ How the Java Compiler resolves overloaded methods ✅ The 3 selection rules (Method Name → Parameter Count → Parameter Type) ✅ When type promotion happens ✅ Why ambiguity leads to compile-time errors ✅ How to explain this concept clearly in interviews with code 💡 Goal: Move from knowing concepts → explaining them confidently → applying them in real scenarios Building strong fundamentals in OOP and Core Java step by step as part of my preparation for software development roles. Consistency, revision, and practical understanding — every single day. 📚💻 #Java #CoreJava #OOP #TAPACADEMY #MethodOverloading #Polymorphism #JavaDeveloper #ProgrammingFundamentals #InterviewPreparation #LearningInPublic #CodeNewbie #TechJourney #SoftwareEngineering #JavaLearning #ConsistencyMatters
To view or add a comment, sign in
-
-
🔐 Encapsulation in Java Encapsulation is a core Object-Oriented Programming concept that focuses on keeping data safe and exposing only what is necessary. In Java, encapsulation means: • Wrapping data and behavior into a single unit (class) • Protecting important data using private access • Allowing controlled interaction using public methods Instead of accessing data directly, we interact with an object through well-defined methods, which helps maintain data integrity and reduces errors. This infographic explains: ✔ Why instance variables should be private ✔ How getters, setters, and constructors control access ✔ The role of the this keyword ✔ How constructors initialize objects safely ✔ How encapsulation improves maintainability, security, and readability Encapsulation helps us build clean, reliable, and scalable software by separating what an object does from how its data is stored internally. 💡 A well-encapsulated class is easier to understand, safer to use, and simpler to modify. #Java #Encapsulation #OOP #CoreJava #ProgrammingConcepts #ObjectOrientedProgramming #JavaLearning #CleanCode #SoftwareDevelopment
To view or add a comment, sign in
-
-
📅 Day 3 – Java Full Stack Development with AI Today I learned about Java Variables & Data Types. Topics covered: Variables in Java Primitive data types (int, float, double, char, boolean) Basic operators Key takeaway: Understanding data types is the foundation of Java programming. #CoreJava #JavaLearning #Variables #DataTypes #FullStackDeveloper
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