Java Programming Exercises with Solutions
About
-
I created this website to help developers improve their programming skills by practising simple coding exercises. The target audience is Software Engineers, Test Automation Engineers, or anyone curious about computer programming. The primary programming language is Java, as it is mature and easy to learn, but you can practice the same problems in any other language (Kotlin, Python, Javascript, etc.).
Highlights
- Binary Tree problems are common at Google, Amazon and Facebook coding interviews.
- Sharpen your lambda and streams skills with Java 8 coding practice problems.
- Check our Berlin Clock solution, a commonly used code exercise.
- We have videos too! Check out the FizzBuzz solution, a problem widely used on phone screenings.
How does it work ?
1. Choose difficulty
Easy, moderate or challenging.
2. Choose the exercise
From a list of coding exercises commonly found in interviews.
3. Type in your code
No IDE, no auto-correct... just like the whiteboard interview question.
4. Check results
Typically 3-5 unit tests that verify your code.