Skip to content

caogiathinh/object-oriented-java

Repository files navigation

🚀 Object-Oriented Java Learning Journey

Welcome to this exciting journey into Object-Oriented Programming with Java! This repository is your hands-on guide to mastering OOP concepts through practical, real-world examples.

🌟 What You'll Learn

  • Classes & Objects: Learn how to create blueprints for your data and bring them to life
  • Inheritance: Discover the power of code reuse and building hierarchical relationships
  • Polymorphism: Master the art of writing flexible and maintainable code
  • Encapsulation: Understand how to protect your data and create robust applications
  • Abstraction: Learn to simplify complex systems into manageable components

📁 Repository Structure

Each session is carefully crafted to build upon previous concepts while introducing new challenges:

  1. Session01-Hello: Your first steps into Java programming
  2. Session02-Languages: Exploring Java's fundamental language features
  3. Session03-Class: Deep dive into object-oriented design
  4. Session04-Essential: Understanding and implementing try-catch for robust error handling
  5. Session05-Array: Working with arrays to manage collections of data
  6. Session06-Inheritance: Leveraging inheritance for code reuse and organization
  7. Session07-Collections: Utilizing Java's Collections Framework for efficient data management

⚡ Quick Start

# Clone the repository
git clone https://github.com/caogiathinh/object-oriented-java.git

# Navigate to a specific session
cd Session01-Hello/HelloJava
cd Session02-Languages/LanguagesJava
cd Session03-Class/ClassJava
cd Session04-Essential/EssentialJava
cd Session05-Array/ArrayJava
cd Session06-Inheritance/InheritanceJava
cd Session07-Collections/CollectionsJava

# Compile and run using Java
javac src/hellojava/HelloJava.java
java -cp src hellojava.HelloJava

🔑 Key Features

  • 💻 Practical, hands-on examples
  • 📝 Well-documented code
  • 🎯 Progressive learning path
  • 🛠️ Real-world applications

Contents

README.md

opp-summary.md

coding-convention.md

session-overview.md

Session 01 - Hello Java

  • Introduction to Java programming
  • Setting up development environment
  • Writing your first Java program
  • Basic syntax and structure

Session 02 - Languages

  • Data types and variables
  • Control structures
  • Arrays and collections
  • Basic input/output operations
  • Functions and methods

Session 03 - Object-Oriented Programming

  • Classes and objects
  • Constructors and methods
  • Access modifiers
  • Object lifecycle management

Session 04 - Exception Handling

  • Understanding exceptions
  • Try-catch blocks
  • Exception types
  • Best practices for error handling

Session 05 - Array

  • Primitive vs. Object arrays
  • Hands-on examples of array usage
  • Student management system using arrays

Session 06 - Inheritance

  • Inheritance concepts
  • Superclasses and subclasses
  • Method overriding
  • Using super keyword

Session 07 - Collections Framework

  • Introduction to Java Collections
  • List, Set, Map interfaces
  • Common implementations (ArrayList, HashSet, HashMap)
  • Iterating through collections

Each session contains practical examples and exercises to reinforce your learning. Follow the sessions in order for the best learning experience.

About

Object Oriented Programming with Java Languages.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages