# saekrishna-k/core-java-concepts architecture

> Architecture diagram of the GitHub repository saekrishna-k/core-java-concepts, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-06). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/saekrishna-k/core-java-concepts
- Repository: https://github.com/saekrishna-k/core-java-concepts

## Overview

Core-Java-Concepts is a collection of Java concept examples, not a single application workflow: a learner explores and runs standalone demonstrations and observes their behavior. The graph groups the repository’s major tutorial areas and retains the substantial core modules named by the source index. Only a few concrete cross-example calls are evidenced in the excerpts; other examples are shown as independent topics rather than an invented execution pipeline.

Main entry points: [`src/CoreJava/Generics/GenericMethods/KeyPair.java`](https://github.com/saekrishna-k/core-java-concepts/blob/main/src/CoreJava/Generics/GenericMethods/KeyPair.java) (Generic methods), [`src/CoreJava/Callable/CallableExample.java`](https://github.com/saekrishna-k/core-java-concepts/blob/main/src/CoreJava/Callable/CallableExample.java) (Callable examples), [`src/CoreJava/MultiThreading/ProducerConsumer/ProducerConsumerClient.java`](https://github.com/saekrishna-k/core-java-concepts/blob/main/src/CoreJava/MultiThreading/ProducerConsumer/ProducerConsumerClient.java) (Producer consumer demo), [`src/CoreJava/ExceptionHandling`](https://github.com/saekrishna-k/core-java-concepts/tree/main/src/CoreJava/ExceptionHandling) (Exception handling)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_foundations["Java foundations"]
  node_exceptions["Exception handling"]
  node_class_lifecycle["Class lifecycle<br/>[Base.java]"]
  node_object_lifecycle["Object lifecycle<br/>[Base.java]"]
  node_dispatch["Method dispatch"]
  node_overloading["Method overloading"]
  node_jvm["JVM and memory"]
  node_garbage_collection["Garbage collection<br/>[Example1.java]"]
  node_collections["Collections"]
end

subgraph group_types["Types and design"]
  node_generics["Generic classes<br/>[Pair.java]"]
  node_generic_methods["Generic methods<br/>[KeyPair.java]"]
  node_immutability["Immutability"]
end

subgraph group_concurrency["Concurrency"]
  node_callable["Callable examples"]
  node_custom_runnable["Custom runnable"]
  node_thread_examples["Thread control"]
  node_producer_client["Producer consumer demo"]
  node_shared_resource["Shared buffer"]
  node_thread_pool["Thread pool"]
  node_future["Future examples<br/>[FutureExample.java]"]
  node_completable_future["Async composition"]
end

subgraph group_patterns["Design patterns"]
  node_design_patterns["Creational patterns"]
  node_adapter["Adapter pattern"]
end

node_learner(("Learner"))

node_learner -.->|"explores examples"| node_exceptions
node_callable -->|"submits runnable"| node_custom_runnable
node_producer_client -->|"creates and invokes"| node_shared_resource
node_generic_methods -->|"uses Pair"| node_generics

click node_exceptions "https://github.com/saekrishna-k/core-java-concepts/tree/main/src/CoreJava/ExceptionHandling"
click node_class_lifecycle "https://github.com/saekrishna-k/core-java-concepts/blob/main/src/CoreJava/StaticControlFlow/Base.java"
click node_object_lifecycle "https://github.com/saekrishna-k/core-java-concepts/blob/main/src/CoreJava/InstanceControlFlow/Base.java"
click node_dispatch "https://github.com/saekrishna-k/core-java-concepts/tree/main/src/CoreJava/MethodOverriding"
click node_overloading "https://github.com/saekrishna-k/core-java-concepts/tree/main/src/CoreJava/MethodOverloading"
click node_jvm "https://github.com/saekrishna-k/core-java-concepts/blob/main/src/CoreJava/JVMArchitecture/ClassObjectExample.java"
click node_garbage_collection "https://github.com/saekrishna-k/core-java-concepts/blob/main/src/CoreJava/GarbageCollection/Example1.java"
click node_collections "https://github.com/saekrishna-k/core-java-concepts/tree/main/src/CoreJava/Collections/List"
click node_generics "https://github.com/saekrishna-k/core-java-concepts/blob/main/src/CoreJava/Generics/GenericClasses/Pair.java"
click node_generic_methods "https://github.com/saekrishna-k/core-java-concepts/blob/main/src/CoreJava/Generics/GenericMethods/KeyPair.java"
click node_immutability "https://github.com/saekrishna-k/core-java-concepts/blob/main/src/CoreJava/ImmutableClass/ImmutableClass.java"
click node_callable "https://github.com/saekrishna-k/core-java-concepts/blob/main/src/CoreJava/Callable/CallableExample.java"
click node_custom_runnable "https://github.com/saekrishna-k/core-java-concepts/blob/main/src/CoreJava/Callable/CustomRunnable.java"
click node_thread_examples "https://github.com/saekrishna-k/core-java-concepts/tree/main/src/CoreJava/MultiThreading"
click node_producer_client "https://github.com/saekrishna-k/core-java-concepts/blob/main/src/CoreJava/MultiThreading/ProducerConsumer/ProducerConsumerClient.java"
click node_shared_resource "https://github.com/saekrishna-k/core-java-concepts/blob/main/src/CoreJava/MultiThreading/ProducerConsumer/SharedResource.java"
click node_thread_pool "https://github.com/saekrishna-k/core-java-concepts/blob/main/src/CoreJava/ThreadPoolExecutor/ThreadPoolExecutorExample1.java"
click node_future "https://github.com/saekrishna-k/core-java-concepts/blob/main/src/CoreJava/Future/FutureExample.java"
click node_completable_future "https://github.com/saekrishna-k/core-java-concepts/blob/main/src/CoreJava/CompletableFuture/ThenApplyAsync.java"
click node_design_patterns "https://github.com/saekrishna-k/core-java-concepts/tree/main/src/CoreJava/DesignPattern/CreationalDesignPattern"
click node_adapter "https://github.com/saekrishna-k/core-java-concepts/blob/main/src/CoreJava/DesignPattern/StructuralDesignPattern/AdapterDesignPattern.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_exceptions,node_class_lifecycle,node_object_lifecycle,node_dispatch,node_overloading,node_jvm,node_garbage_collection,node_collections toneBlue
class node_generics,node_generic_methods,node_immutability toneAmber
class node_callable,node_custom_runnable,node_thread_examples,node_producer_client,node_shared_resource,node_thread_pool,node_future,node_completable_future toneMint
class node_design_patterns,node_adapter toneRose
class node_learner toneIndigo
```

## Components

### Java foundations

- [Exception handling](https://github.com/saekrishna-k/core-java-concepts/tree/main/src/CoreJava/ExceptionHandling): `src/CoreJava/ExceptionHandling`
- [Class lifecycle](https://github.com/saekrishna-k/core-java-concepts/blob/main/src/CoreJava/StaticControlFlow/Base.java): `src/CoreJava/StaticControlFlow/Base.java`
- [Object lifecycle](https://github.com/saekrishna-k/core-java-concepts/blob/main/src/CoreJava/InstanceControlFlow/Base.java): `src/CoreJava/InstanceControlFlow/Base.java`
- [Method dispatch](https://github.com/saekrishna-k/core-java-concepts/tree/main/src/CoreJava/MethodOverriding): `src/CoreJava/MethodOverriding`
- [Method overloading](https://github.com/saekrishna-k/core-java-concepts/tree/main/src/CoreJava/MethodOverloading): `src/CoreJava/MethodOverloading`
- [JVM and memory](https://github.com/saekrishna-k/core-java-concepts/blob/main/src/CoreJava/JVMArchitecture/ClassObjectExample.java): `src/CoreJava/JVMArchitecture/ClassObjectExample.java`
- [Garbage collection](https://github.com/saekrishna-k/core-java-concepts/blob/main/src/CoreJava/GarbageCollection/Example1.java): `src/CoreJava/GarbageCollection/Example1.java`
- [Collections](https://github.com/saekrishna-k/core-java-concepts/tree/main/src/CoreJava/Collections/List): `src/CoreJava/Collections/List`

### Types and design

- [Generic classes](https://github.com/saekrishna-k/core-java-concepts/blob/main/src/CoreJava/Generics/GenericClasses/Pair.java): `src/CoreJava/Generics/GenericClasses/Pair.java`
- [Generic methods](https://github.com/saekrishna-k/core-java-concepts/blob/main/src/CoreJava/Generics/GenericMethods/KeyPair.java): `src/CoreJava/Generics/GenericMethods/KeyPair.java`
- [Immutability](https://github.com/saekrishna-k/core-java-concepts/blob/main/src/CoreJava/ImmutableClass/ImmutableClass.java): `src/CoreJava/ImmutableClass/ImmutableClass.java`

### Concurrency

- [Callable examples](https://github.com/saekrishna-k/core-java-concepts/blob/main/src/CoreJava/Callable/CallableExample.java): `src/CoreJava/Callable/CallableExample.java`
- [Custom runnable](https://github.com/saekrishna-k/core-java-concepts/blob/main/src/CoreJava/Callable/CustomRunnable.java): `src/CoreJava/Callable/CustomRunnable.java`
- [Thread control](https://github.com/saekrishna-k/core-java-concepts/tree/main/src/CoreJava/MultiThreading): `src/CoreJava/MultiThreading`
- [Producer consumer demo](https://github.com/saekrishna-k/core-java-concepts/blob/main/src/CoreJava/MultiThreading/ProducerConsumer/ProducerConsumerClient.java): `src/CoreJava/MultiThreading/ProducerConsumer/ProducerConsumerClient.java`
- [Shared buffer](https://github.com/saekrishna-k/core-java-concepts/blob/main/src/CoreJava/MultiThreading/ProducerConsumer/SharedResource.java): `src/CoreJava/MultiThreading/ProducerConsumer/SharedResource.java`
- [Thread pool](https://github.com/saekrishna-k/core-java-concepts/blob/main/src/CoreJava/ThreadPoolExecutor/ThreadPoolExecutorExample1.java): `src/CoreJava/ThreadPoolExecutor/ThreadPoolExecutorExample1.java`
- [Future examples](https://github.com/saekrishna-k/core-java-concepts/blob/main/src/CoreJava/Future/FutureExample.java): `src/CoreJava/Future/FutureExample.java`
- [Async composition](https://github.com/saekrishna-k/core-java-concepts/blob/main/src/CoreJava/CompletableFuture/ThenApplyAsync.java): `src/CoreJava/CompletableFuture/ThenApplyAsync.java`

### Design patterns

- [Creational patterns](https://github.com/saekrishna-k/core-java-concepts/tree/main/src/CoreJava/DesignPattern/CreationalDesignPattern): `src/CoreJava/DesignPattern/CreationalDesignPattern`
- [Adapter pattern](https://github.com/saekrishna-k/core-java-concepts/blob/main/src/CoreJava/DesignPattern/StructuralDesignPattern/AdapterDesignPattern.java): `src/CoreJava/DesignPattern/StructuralDesignPattern/AdapterDesignPattern.java`

### Other components

- **Learner**

## Connections

- Learner → Exception handling: explores examples
- Callable examples → Custom runnable: submits runnable (evidence: `src/CoreJava/Callable/CallableExample.java`)
- Producer consumer demo → Shared buffer: creates and invokes (evidence: `src/CoreJava/MultiThreading/ProducerConsumer/ProducerConsumerClient.java`)
- Generic methods → Generic classes: uses Pair (evidence: `src/CoreJava/Generics/GenericMethods/KeyPair.java`)
