https://geeksforgeeks.com . https://hackerrank.com . https://hackerearth.com . https://codechef.com . https://codeforces.com . https://learnbyexample.com . https://dmoj.ca . https://codewars.com . These are some websites for practicing coding EDIT: including suggestions from the comments https://www.baeldung.com/java-tutorial Answer from Deleted User on reddit.com
🌐
HackerRank
hackerrank.com › domains › java
Solve Java Code Challenges
Join over 28 million developers in solving code challenges on HackerRank, one of the best ways to prepare for programming interviews.
🌐
CodeGym
codegym.cc
Learn Java - Online Java Course
To learn Java programming, you should code a lot – and you’ll like it! CodeGym is an online Java programming course consisting of 80% practice and 20% of essential theory.
Rating: 4.9 ​ - ​ 1.49K votes
Discussions

Website for practicing Java?
https://geeksforgeeks.com . https://hackerrank.com . https://hackerearth.com . https://codechef.com . https://codeforces.com . https://learnbyexample.com . https://dmoj.ca . https://codewars.com . These are some websites for practicing coding EDIT: including suggestions from the comments https://www.baeldung.com/java-tutorial More on reddit.com
🌐 r/learnjava
28
92
February 7, 2021
What is the best way to learn and practice java at the same time?
Please ensure that: Your code is properly formatted as code block - see the sidebar (About on mobile) for instructions You include any and all error messages in full - best also formatted as code block You ask clear questions You demonstrate effort in solving your question/problem - plain posting your assignments is forbidden (and such posts will be removed) as is asking for or giving solutions. If any of the above points is not met, your post can and will be removed without further warning. Code is to be formatted as code block (old reddit/markdown editor: empty line before the code, each code line indented by 4 spaces, new reddit: https://i.imgur.com/EJ7tqek.png ) or linked via an external code hoster, like pastebin.com, github gist, github, bitbucket, gitlab, etc. Please, do not use triple backticks (```) as they will only render properly on new reddit, not on old reddit. Code blocks look like this: public class HelloWorld { public static void main(String[] args) { System.out.println("Hello World!"); } } You do not need to repost unless your post has been removed by a moderator. Just use the edit function of reddit to make sure your post complies with the above. If your post has remained in violation of these rules for a prolonged period of time (at least an hour), a moderator may remove it at their discretion. In this case, they will comment with an explanation on why it has been removed, and you will be required to resubmit the entire post following the proper procedures. To potential helpers Please, do not help if any of the above points are not met, rather report the post. We are trying to improve the quality of posts here. In helping people who can't be bothered to comply with the above points, you are doing the community a disservice. I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns. More on reddit.com
🌐 r/learnjava
12
22
August 4, 2023
What is the best (and realistic way) of learning Java.
Please ensure that: Your code is properly formatted as code block - see the sidebar (About on mobile) for instructions You include any and all error messages in full - best also formatted as code block You ask clear questions You demonstrate effort in solving your question/problem - plain posting your assignments is forbidden (and such posts will be removed) as is asking for or giving solutions. If any of the above points is not met, your post can and will be removed without further warning. Code is to be formatted as code block (old reddit/markdown editor: empty line before the code, each code line indented by 4 spaces, new reddit: https://i.imgur.com/EJ7tqek.png ) or linked via an external code hoster, like pastebin.com, github gist, github, bitbucket, gitlab, etc. Please, do not use triple backticks (```) as they will only render properly on new reddit, not on old reddit. Code blocks look like this: public class HelloWorld { public static void main(String[] args) { System.out.println("Hello World!"); } } You do not need to repost unless your post has been removed by a moderator. Just use the edit function of reddit to make sure your post complies with the above. If your post has remained in violation of these rules for a prolonged period of time (at least an hour), a moderator may remove it at their discretion. In this case, they will comment with an explanation on why it has been removed, and you will be required to resubmit the entire post following the proper procedures. To potential helpers Please, do not help if any of the above points are not met, rather report the post. We are trying to improve the quality of posts here. In helping people who can't be bothered to comply with the above points, you are doing the community a disservice. I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns. More on reddit.com
🌐 r/learnjava
76
58
August 25, 2023
Best Fastest way to learn Java for a job?
First learn Java fundamentals using mooc fi course. Depending on your pace this should take about 3 months. It's possible to finish it sooner but also later. Depends on you. Solve all the questions on your own. Check solutions in google only if you are really stuck and cant move forward. Learn very basics of SQL. I mean just basics like creating new record in table, reading it, updating and deleting. Nothing fancy. Leave table joins etc for other day if you are in hurry. This should take about 1-2 days. Create some small app on your own from the scratch. Make sure you use there most of your new Java knowledge and SQL. After mooc fi you will use JavaFX for the User interface but it's really important that you dont waste time for UI. JavaFX is useless and you will waste time on it if you will try to do something too complex. You can consider you app being REST client and include something from outside(I dont know some weather information or nice quote. Check free REST api's and choose something for yourself.) Keep this app very simple. You don't want to spend more than 1 month on it and it's very easy to over-estimate time required to write an app especially if it's your first solo app. Prepare you CV and do 1-2 exercises from codility every day. This shouldnt take more than 1 week. After that you can start slowly applying. Spend 1-2 hours every week for applications and do 1-2 codility exercises every week. So basically after 4 months you can start applying. It's too early however but some companies are looking for a junior to train who is keen on learning. If you are lucky they might choose you. So one day a week you will spend on job search and codility. Use the other 5/6 days to learn Spring with Java Brains. Once you will feel confident with Spring do your own Spring app(you will need some very basic HTML but very basic that you can learn in few days). This should take 2-3 months. Now after 7 months increase job applications pace. But keep learning Spring and Java. Never hurry in the study. Make sure you understand topics very well and take your time to understand it. Your lack of understanding of the topic will always sooner or later come out and you will waste more time as a result. However, dont give yourself such deadline. First job is often about luck; finding that one company that sees your potential. For some it happens after 3 months for others after 3 years. But you need to keep consistent if you really want to become software developer. Aim for 8 months but know that it can take much much more. As you will learn you will increase your chances so persistent person will eventually get it but nobody will promise you it will happen after 8 months. If you will starve after 8 months due to uneplmployment consider finding part-time job just to live and study programming the rest of time. More on reddit.com
🌐 r/learnjava
37
77
August 29, 2022
🌐
CodeChef
codechef.com › practice › java
Practice Java
Complete your Java coding practice with our online Java practice course on CodeChef. Solve over 180 coding problems and challenges to get better at Java.
🌐
IDTech
idtech.com › blog › how-to-practice-java-online-with-free-coding-websites
Free Java Coding Practice Online | 10 Websites for Kids, Teens & Beginners
January 12, 2026 - CodeGym does require a paid subscription for full access to all content, but the free tier provides a solid introduction to Java fundamentals. If your child enjoys the platform, the paid version unlocks significantly more content and features. ... GeeksforGeeks is another resource library that includes practice problems alongside tutorials. The site covers Java topics exhaustively, with explanations, code examples, and practice questions for nearly everything.
🌐
CodingBat
codingbat.com › java
CodingBat Java
CodingBat code practice · Welcome to Codingbat. See help for the latest. Java Example Solution Code · Java String Introduction (video) Java Substring v2 (video) Java String Equals and Loops · Java String indexOf and Parsing · Java If and Boolean Logic · If Boolean Logic Example Solution ...
🌐
Placement Preparation
placementpreparation.io › home › blog › programming › best websites to practice java
10 Best Websites to Practice Java in 2026 [Free + Paid]
February 3, 2026 - W3Schools provides Java tutorials with embedded editors where learners can modify and test code immediately. The lessons cover syntax, loops, arrays, and basic OOP. Each tutorial includes exercises tied to the lesson learned. The simplicity of the interface and immediate feedback make it good for absolute beginners. Practice Format: Interactive code examples and exercises
Find elsewhere
🌐
Medium
leeddev.medium.com › best-sites-for-java-coding-practice-5ca8789235d4
Best Sites for Java Coding Practice | by Leed Software Development | Medium
May 2, 2024 - For Java developers looking to improve their skills, online Java Coding Practice websites offer a wealth of resources. Among these, Coderbyte, Pluralsight, Edabit, CodinGame, and CodeChef stand out as excellent platforms for honing your Java ...
🌐
CodeGym
codegym.cc › java-coding-practice
Java Coding Practice | Improve Your Skills with Free Java Exercises
Tons of versatile Java coding tasks for learners with any background: from Java Syntax and Core Java topics to Multithreading and Java Collections · The support from the CodeGym team and the global community of learners (“Help” section, programming forum, and chat) The modern tool for coding practice: with an automatic check of your solutions, hints on resolving the tasks, and advice on how to improve your coding style
🌐
GitConnected
levelup.gitconnected.com › 10-best-websites-to-practice-java-programming-and-coding-interview-questions-1d2731d8a852
10 Best Places for Coding Interview Questions | by javinpaul | Level Up Coding
February 22, 2024 - That’s all about this list of top websites for Programming interview problems. Depending upon which niche you are you can also focus on one of the sites for data structure and algorithm, GeeksforGeek has got a large number of problems but Javarevisited is the best for preparing Java interviews.
🌐
Exercism
exercism.org › tracks › java
Java on Exercism
👋Learning to code? Check out ourCoding Fundamentalscourse for beginners! ... Join Exercism’s Java Track for access to 156 exercises grouped into 26 Java Concepts, with automatic analysis of your code and personal mentoring, all 100% free.
🌐
Blogger
javarevisited.blogspot.com › 2018 › 07 › top-5-websites-to-learn-coding-in-java.html
Top 5 Websites to Learn Java Coding for FREE in 2025 - Best of lot
The list not only includes websites where you can join free Java courses but also places where you can practice Java online, for example, CodeAbbey and CodingBat which are great places to learn Java by solving small programming problems.
🌐
Medium
gainjavaknowledge.medium.com › top-sites-to-practice-java-178d5ed94423
Top Sites to Practice Java - Gain Java Knowledge - Medium
April 4, 2025 - Great! If you’re looking to level up your Java skills through hands-on practice, here are the best websites for Java coding challenges, projects, and exercises — from beginner to advanced:
🌐
w3resource
w3resource.com › java-exercises
Java programming Exercises, Practice, Solution - w3resource
Practice exercises-from basic to advanced-with sample solutions to boost your coding skills. Challenge yourself, learn by doing, and enjoy coding! ... More to Come ! ... [ Want to contribute to Java exercises? Send your code (attached with a .zip file) to us at w3resource[at]yahoo[dot]com.
🌐
Quora
quora.com › Which-is-the-best-site-to-practice-java-programming-onlline
Which is the best site to practice java programming onlline? - Quora
Answer (1 of 4): 1.javaTpoint which is very good for beginners. 2.Head First Java if u refer by book means. 3.Geeksforgeeks for online practice. 4.Durga Soft for video tutorial practice. All the best
🌐
Medium
medium.com › javarevisited › where-to-get-daily-coding-practice-in-java-21e877485248
Where to Get Daily Coding Practice in Java | by John Selawsky | Javarevisited | Medium
May 17, 2023 - Where to Get Daily Coding Practice in Java The more you do something the better outcomes you gradually get. This common knowledge applies to Java programming as well. No reading and staring into the …
🌐
GeeksforGeeks
geeksforgeeks.org › java › java-exercises
Java Exercises - Basic to Advanced Java Practice Programs with Solutions - GeeksforGeeks
October 9, 2025 - Your All-in-One Learning Portal. It contains well written, well thought and well explained computer science and programming articles, quizzes and practice/competitive programming/company interview Questions.
🌐
Medium
medium.com › javarevisited › 10-best-places-to-learn-java-online-for-free-ce5e713ab5b2
10 Best Places to Learn Java Online for Free in 2025 | by javinpaul | Javarevisited | Medium
May 2, 2025 - The other site I am going to share with you guys is CodingBat. This site is also an excellent resource to practice and learn to code for Java and Python programmers. This is actually the best website to practice Java coding and solve programs to learn coding as well.
🌐
Free Outlook
web.nutritionjobs.com › home › news › java coding practice: best sites to level up your skills
Java Coding Practice: Best Sites To Level Up Your Skills
January 5, 2026 - So, if you want a structured and supportive environment, Codecademy is the way to go. CodingBat is a fantastic resource created by Nick Parlante, a computer science lecturer at Stanford. It’s specifically designed to help you practice basic coding problems in Java and Python. The site is incredibly straightforward and focuses on providing a large number of small, well-defined problems that you can solve online.
🌐
W3Schools
w3schools.com › java › java_exercises.asp
Java Exercises
W3Schools offers free online tutorials, references and exercises in all the major languages of the web. Covering popular subjects like HTML, CSS, JavaScript, Python, SQL, Java, and many, many more.