Welcome to the Java Interview Preparation repository! This repo is designed to help you practice and master common Java coding problems and concepts for live coding interviews. Whether you're brushing up on fundamentals or tackling advanced topics, you'll find useful examples and exercises here.
- Core Java Concepts: Collections, iterators, fail-fast behavior, string manipulation, and more.
- Java 8 Features: Streams, lambdas, functional interfaces, and modern idioms.
- Algorithmic Exercises: Fibonacci, prime numbers, sorting, frequency counting, and more.
- Design Patterns: Example of the Decorator pattern.
- Unit Tests: JUnit tests for verifying your solutions.
pom.xml
src/
main/
java/
io/github/akumosstl/
<various Java files>
collections/
sort/
java8/
patterns/
decorator/
string/
resources/
assets/img/diagram/
test/
java/io/github/akumosstl/
<test files>
target/
- ๐ข Fibonacci Series
- ๐งฎ Prime Number Check
- ๐๏ธ List Iterators & Fail-Fast
- ๐งฉ Collection Comparison
- ๐งโ๐ป Java 8 Stream Operations
- ๐ Finding Min/Max, Duplicates, Frequency
- ๐ก String Manipulation (Reverse, Uppercase, Vowel Check)
- โ Decorator Pattern Example (CoffeeShop)
- Make sure you have Java and Maven installed.
- Run tests with:
mvn test- Explore each file for concise, interview-focused code snippets.
- Practice modifying and running the code to deepen your understanding.
- Use the test files to check your solutions and learn best practices.
Pull requests and suggestions are welcome! If you have a favorite interview problem or Java concept, feel free to add it.
This project is for educational purposes.
Happy coding and good luck with your interviews! ๐ช