# navinreddy20/javacode architecture

> Architecture diagram of the GitHub repository navinreddy20/javacode, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-02). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/navinreddy20/javacode
- Repository: https://github.com/navinreddy20/javacode

## Overview

This repository is a set of standalone Java teaching examples, not a single application. The implied learner journey moves from language fundamentals through object-oriented programming and runtime features to collections, streams, and JDBC. The graph preserves these major lesson areas; only a few excerpts show executable interactions, so most lessons are not linked into an invented sequence.

Main entry points: [`Lecture-Connecting Java and DB/src/DemoJdbc.java`](https://github.com/navinreddy20/javacode/blob/main/Lecture-Connecting%20Java%20and%20DB/src/DemoJdbc.java) (JDBC Examples), [`14.1 Need of Interface.java`](https://github.com/navinreddy20/javacode/blob/main/14.1%20Need%20of%20Interface.java) (Developer Demo), [`19.4 Runnable vsThrowable.java`](https://github.com/navinreddy20/javacode/blob/main/19.4%20Runnable%20vsThrowable.java) (Threading)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_fundamentals["Language Fundamentals"]
  node_basics["Syntax and Control Flow"]
  node_loops["Loops and Arrays"]
  node_methods["Methods and Memory<br/>[5.1 Methods.java]"]
end

subgraph group_oop["Object-Oriented Java"]
  node_classes["Classes and Objects"]
  node_encapsulation["Encapsulation"]
  node_inheritance["Inheritance and Polymorphism"]
  node_interfaces["Interfaces and Lambdas"]
  node_developer["Developer Demo"]
  node_computer["Computer Interface"]
end

subgraph group_runtime["Runtime Concepts"]
  node_exceptions["Exception Handling"]
  node_threads["Threading"]
end

subgraph group_data["Data and JDBC"]
  node_collections["Collections and Comparators<br/>[20.3 Sets.java]"]
  node_streams["Stream Operations"]
  node_jdbc["JDBC Examples<br/>[DemoJdbc.java]"]
end

node_learner(("Learner"))
node_jdbc_api["JDBC Driver API"]
node_postgres[("PostgreSQL Database")]
node_thread_runtime["Java Thread Runtime"]

node_developer -->|"invokes code"| node_computer
node_jdbc -->|"opens connection"| node_jdbc_api
node_jdbc -->|"connects to"| node_postgres
node_jdbc -->|"executes SQL"| node_postgres
node_jdbc -->|"writes records"| node_postgres
node_jdbc -->|"uses parameters"| node_postgres
node_threads -->|"starts threads"| node_thread_runtime

click node_basics "https://github.com/navinreddy20/javacode/blob/main/2.12.1%20If%20Else.java"
click node_loops "https://github.com/navinreddy20/javacode/blob/main/3.1%20Need%20for%20loop.java"
click node_methods "https://github.com/navinreddy20/javacode/blob/main/5.1%20Methods.java"
click node_classes "https://github.com/navinreddy20/javacode/blob/main/4.1.2%20Class%20and%20Object%20Practical.java"
click node_encapsulation "https://github.com/navinreddy20/javacode/blob/main/9.1%20Encapsulation.java"
click node_inheritance "https://github.com/navinreddy20/javacode/blob/main/10.4%20Single%20and%20Multilevel%20Inheritance.java"
click node_interfaces "https://github.com/navinreddy20/javacode/blob/main/14.1%20Need%20of%20Interface.java"
click node_exceptions "https://github.com/navinreddy20/javacode/blob/main/18.4%20try%20with%20multiple%20catch%20block.java"
click node_threads "https://github.com/navinreddy20/javacode/blob/main/19.4%20Runnable%20vsThrowable.java"
click node_collections "https://github.com/navinreddy20/javacode/blob/main/20.3%20Sets.java"
click node_streams "https://github.com/navinreddy20/javacode/blob/main/22.4%20Map%20Filter%20Reduce%20Sorted.java"
click node_jdbc "https://github.com/navinreddy20/javacode/blob/main/Lecture-Connecting%20Java%20and%20DB/src/DemoJdbc.java"
click node_developer "https://github.com/navinreddy20/javacode/blob/main/14.1%20Need%20of%20Interface.java"
click node_computer "https://github.com/navinreddy20/javacode/blob/main/14.1%20Need%20of%20Interface.java"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_basics,node_loops,node_methods toneBlue
class node_classes,node_encapsulation,node_inheritance,node_interfaces,node_developer,node_computer,node_postgres toneAmber
class node_exceptions,node_threads,node_jdbc_api toneMint
class node_collections,node_streams,node_jdbc toneRose
class node_learner,node_thread_runtime toneIndigo
```

## Components

### Language Fundamentals

- [Syntax and Control Flow](https://github.com/navinreddy20/javacode/blob/main/2.12.1%20If%20Else.java): `2.12.1 If Else.java`
- [Loops and Arrays](https://github.com/navinreddy20/javacode/blob/main/3.1%20Need%20for%20loop.java): `3.1 Need for loop.java`
- [Methods and Memory](https://github.com/navinreddy20/javacode/blob/main/5.1%20Methods.java): `5.1 Methods.java`

### Object-Oriented Java

- [Classes and Objects](https://github.com/navinreddy20/javacode/blob/main/4.1.2%20Class%20and%20Object%20Practical.java): `4.1.2 Class and Object Practical.java`
- [Encapsulation](https://github.com/navinreddy20/javacode/blob/main/9.1%20Encapsulation.java): `9.1 Encapsulation.java`
- [Inheritance and Polymorphism](https://github.com/navinreddy20/javacode/blob/main/10.4%20Single%20and%20Multilevel%20Inheritance.java): `10.4 Single and Multilevel Inheritance.java`
- [Interfaces and Lambdas](https://github.com/navinreddy20/javacode/blob/main/14.1%20Need%20of%20Interface.java): `14.1 Need of Interface.java`
- [Developer Demo](https://github.com/navinreddy20/javacode/blob/main/14.1%20Need%20of%20Interface.java): `14.1 Need of Interface.java`
- [Computer Interface](https://github.com/navinreddy20/javacode/blob/main/14.1%20Need%20of%20Interface.java): `14.1 Need of Interface.java`

### Runtime Concepts

- [Exception Handling](https://github.com/navinreddy20/javacode/blob/main/18.4%20try%20with%20multiple%20catch%20block.java): `18.4 try with multiple catch block.java`
- [Threading](https://github.com/navinreddy20/javacode/blob/main/19.4%20Runnable%20vsThrowable.java): `19.4 Runnable vsThrowable.java`

### Data and JDBC

- [Collections and Comparators](https://github.com/navinreddy20/javacode/blob/main/20.3%20Sets.java): `20.3 Sets.java`
- [Stream Operations](https://github.com/navinreddy20/javacode/blob/main/22.4%20Map%20Filter%20Reduce%20Sorted.java): `22.4 Map Filter Reduce Sorted.java`
- [JDBC Examples](https://github.com/navinreddy20/javacode/blob/main/Lecture-Connecting%20Java%20and%20DB/src/DemoJdbc.java): `Lecture-Connecting Java and DB/src/DemoJdbc.java`

### Other components

- **Learner**
- **JDBC Driver API**
- **PostgreSQL Database**
- **Java Thread Runtime**

## Connections

- Developer Demo → Computer Interface: invokes code (evidence: `14.1 Need of Interface.java`)
- JDBC Examples → JDBC Driver API: opens connection (evidence: `Lecture-Connecting Java and DB/src/DemoJdbc.java`)
- JDBC Examples → PostgreSQL Database: connects to (evidence: `Lecture-Connecting Java and DB/src/DemoJdbc.java`)
- JDBC Examples → PostgreSQL Database: executes SQL
- JDBC Examples → PostgreSQL Database: writes records
- JDBC Examples → PostgreSQL Database: uses parameters
- Threading → Java Thread Runtime: starts threads (evidence: `19.4 Runnable vsThrowable.java`)
