Skip to content

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Java Revision — Concept && Coding (Shrayansh Jain)

Structured notes + runnable examples for every topic in Shrayansh's JAVA from Basics to Advanced playlist. Each package has:

  • NOTES.md — concise concepts, gotchas, and interview angles
  • Demo.java (and supporting classes) — runnable examples

How to run

# compile everything
javac -d target/classes $(find src/main/java -name "*.java")

# run a single demo
java -cp target/classes revision._25_hashmap_internals.Demo

# run everything
bash run_all.sh

Topic index

Part 1 — OOP & language foundations

  1. OOP — four pillars
  2. JVM, JRE, JDK
  3. Why only one public class per file
  4. Variables — primitive types
  5. IEEE 754 — float/double memory layout
  6. Variables — reference types
  7. Methods
  8. Constructors
  9. Memory management & GC

Part 2 — Classes & interfaces

  1. Nested / Abstract / Super-Sub classes
  2. Generic classes
  3. Enum, POJO, Final
  4. Singleton & Immutable
  5. Interfaces — Part 1
  6. Interfaces — Part 2 (default/static/private, Java 8/9)
  7. Functional Interfaces & Lambdas
  8. Reflection
  9. Annotations

Part 3 — Language essentials

  1. Exception handling
  2. Operators
  3. Control flow

Part 4 — Collections & Streams

  1. Collections framework overview
  2. Comparator vs Comparable, PriorityQueue
  3. Deque & List
  4. HashMap internals
  5. LinkedHashMap & TreeMap
  6. Set
  7. Streams (Java 8)

Part 5 — Multithreading & Concurrency

  1. Threads, Process, Memory model
  2. Thread lifecycle & inter-thread communication
  3. Join, Daemon, Priority
  4. Locks & Conditions (Reentrant, ReadWrite, Stamped, Semaphore)
  5. Lock-free concurrency (CAS, Atomic, Volatile)
  6. ThreadPoolExecutor framework
  7. CompletableFuture / Future / Callable
  8. ForkJoinPool & specialized pools
  9. ScheduledExecutor, shutdown vs awaitTermination
  10. Virtual Threads vs Platform Threads, ThreadLocal

Part 6 — Modern Java features

  1. Optional (Java 8-11)
  2. Text blocks (Java 15)
  3. Records (Java 16)
  4. Pattern matching for instanceof (Java 16)
  5. Sealed classes & interfaces (Java 17)
  6. Switch expressions (Java 14)
  7. Pattern matching for switch (Java 21)
  8. Sequenced collections (Java 21)

Part 7 — File I/O & NIO

  1. File handling — Streams, Buffers, Readers, Writers
  2. NIO Part 1 — advantages over traditional I/O
  3. NIO Part 2 — ByteBuffer variants
  4. NIO Part 3 — FileChannel

About

Structured Java revision notes and runnable demos for 50 topics, organized by Shrayansh Jain's Concept && Coding YouTube playlist.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages