A curated collection of Core Java programs and practical examples designed to strengthen Java fundamentals, improve problem-solving skills, and support technical interview preparation.
This repository demonstrates real-world Java concepts including:
- Collections Framework
- Java 8 Stream API
- Multithreading
- Functional Interfaces
- Comparator & Comparable
- Generics
- Reflection API
- Recursion
- Data Structures
- Common coding patterns
Many developers understand Java syntax but struggle with applying concepts in practical scenarios.
This repository helps by providing:
✅ Small focused examples
✅ Interview-oriented coding problems
✅ Clean Java implementations
✅ Topic-wise organization
✅ Easy-to-understand logic
It can be used as a:
- Java revision guide
- Interview preparation resource
- Learning reference
- Mentoring support repository
DemoProgramsJava/
│── collections/
│── streams/
│── multithreading/
│── recursion/
│── generics/
│── comparator/
│── reflection/
│── datastructures/
└── README.mdIn this repository all Core Java related programs are added, which are mostly tricky one.
Topics: Core java, Collection, Multi threading, Data Structure, Generics, Java8 features, Streams, Functional Interfaces, Reflection, Recursion, Comparator related interview programs.
Here all related codes are places in respective packages listed below.
- API call
- ci (Coding Interview)
- Combination
- Comparator
- Conversions
- Copy
- Data Structure
- Elevator program
- File
- Finally Block
- Generics
- Hash and Equals
- Image Compression
- Immutable
- Interface - Functional Interface
- Java 8 Features
- Design pattern using java8
- Advanced Optional Demo
- Advanced Stream operations on Department
- Functional Interfaces
- BiConsumer
- BiFunction
- BiPredicate
- Collectors utility class
- Comparator
- Consumer
- Custom Collector class
- Custom Functional Interface with default & static methods
- Functions
- Map Reduce
- Method Reference
- Optionals
- Predicates
- Sequential and Parallel Streams
- Streams
- Suppliers
- Leet code
- Array operations
- Average salary excluding min and max salary
- Find duplicate elements in array
- Find the pair of K difference
- Find missing element from array
- Jump by value
- Merge 2 sorted arrays
- Move all Zeros at end
- Number of sub arrays multiplication less than K
- Number of Sequential digits between given range of numbers
- Number of paise which sum of pairs equals to K
- Number operations
- String operations
- Array operations
- List Operations
- Map Operations
- Method Calls
- Numbers Operations
- Overriding
- Palindrome
- Pattern programs
- Permutation
- Recursion
- Reflection
- Runtime Package
- Singleton Prevention
- Store SQL
- Multi-threading
- Blocking Queue
- Completable Future
- Countdown Latch
- Cyclic Barrier
- Hello World Printing(100 times) from 2 Different Threads
- Java Atomic Integer
- Join in Thread
- Hello World Printing from 2 Different Threads
- Producer and Consumer using Synchronized Blocks
- Producer and Consumer using Locks
- Return/Get Value from Thread
- Return/Get Value from Thread using Callable Interface
- Sum of Numbers Range using Executor Framework
- Synchronized method test
- Thread Groups
- Wait and Notify