I recommend reading through the Sun's tutorials for code examples and practice in all areas of Java programming, especially the areas you wish to improve in.

Depending on how much of beginner examples you were looking for, check out CodingBat for some good beginner exercises. Project Euler is another good site, but depending on your skill level now, this may be too much, but it's worth trying anyways.

Most importantly, Its also worth noting that personal projects are a great way to start to learn a new language. I would also recommend starting a project that is benefical to you and get cracking right away, no time is better than the present!

Answer from Anthony Forloney on Stack Overflow
🌐
Edureka
edureka.co › blog › java-programs
Best Java Programs for Practice: Beginners and Experienced
February 13, 2025 - The Simple Java programs for beginners is a collection of basic Java programs designed to help newcomers learn core programming concepts. These programs cover fundamental topics like variables, loops, conditional statements, arrays, and object-oriented principles. Perfect for beginners, they provide hands-on practice to build a strong Java foundation.
🌐
Simplilearn
simplilearn.com › home › resources › software development › best java programs for practice: beginner and experienced examples
Best Java Programs for Practice: Beginner and Experienced Examples
November 26, 2025 - Practice top Java programs for beginners and experts. Explore hands-on coding examples to master loops, arrays, OOP, and real-world Java concepts.
Address   5851 Legacy Circle, 6th Floor, Plano, TX 75024 United States
Discussions

Exercises to improve my Java programming skills - Stack Overflow
If your imagination is lacking, your best bet is to Google something like "java beginner practice problems" and investigate what you get back. Or start with Sun's on-line Java tutorial and work you way all the way through it. You'll know a fair amount about Java when you're done. ... Once you are quite good in Java SE (lets say you are able to pass SCJP), I'd suggest you get junior Java programmer ... More on stackoverflow.com
🌐 stackoverflow.com
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 (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
What are your (favourite) Java best practices, personal tips, hints or just underrated stuff in general?
Use a database deployment tool like Liquibase or Flyway. Invaluable (and not Unvaluable :/). More on reddit.com
🌐 r/java
377
233
April 14, 2023
🌐
Programiz
programiz.com › java-programming › examples
Java Examples | Programiz
Want to learn Java by writing code yourself? Enroll in our Interactive Java Course for FREE. ... Java Program to Iterate through each characters of the string. Java Program to Differentiate String == operator and equals() method · Java Program to Implement switch statement on strings
🌐
GeeksforGeeks
geeksforgeeks.org › java › java-programming-examples
Java Programs - Java Programming Examples - GeeksforGeeks
September 25, 2025 - Through a series of hands-on exercises on Java Exceptions and Errors Handling programs, you will easily get to know how to become a good Java programmer. ... Java Collections is not just about storing your data in Java; So practicing Java Collections programs will help you boost your organization skills.
🌐
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.
🌐
GeeksforGeeks
geeksforgeeks.org › java › java-exercises
Java Exercises - Basic to Advanced Java Practice Programs with Solutions - GeeksforGeeks
October 9, 2025 - This Java exercise collection is designed to deepen your understanding of Java and refine your coding skills. The programs provide hands-on experience in solving real-world problems, reinforce key concepts, and help you master Java fundamentals, including variables, control statements, arrays, strings, methods, and object-oriented programming.
Find elsewhere
🌐
Quora
quora.com › Where-can-I-get-a-list-of-Java-programs-to-practice-from-the-beginner-to-the-advanced-level
Where can I get a list of Java programs to practice from the beginner to the advanced level? - Quora
· · For practicing, you can use any online competitive programming platform like where the world works, HackerRank, Programming Competition,Programming Contest,Online Computer Programming, Sphere Online Judge (SPOJ), HackerEarth - Programming challenges and Developer jobs...
🌐
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 Code 1 (video) If Boolean Logic Example Solution Code 2 (video) Java For and While Loops ·
🌐
Systech
systechgroup.in › home › java programs for practice
Java Practice Programs – Code Challenges & Examples
October 13, 2025 - A: Certainly! Programs like Hello World, Palindrome Check, and Factorial Calculation are simple yet effective for Java practice. Q: Where is the best place to practice Java programming?
🌐
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 - Codecademy offers project-based Java challenges modeled after real technical interviews. These focus on lists, trees, and algorithms, and include small coding tests. Pro membership gives access to detailed feedback and quizzes. Community forums help learners share insight and ask questions. Practice Format: Project and quiz-based challenges ... Programiz offers a clear and beginner-friendly Java tutorial designed to simplify learning through step-by-step guidance.
🌐
Great Learning
mygreatlearning.com › blog › java exercises
Java Practice Programs and Coding Questions for Beginners
September 4, 2025 - Create ATS-friendly Resume for Free Use our Free AI Resume Builder ... Work through 90 Java practice programs, coding questions, and online exercises to improve your programming skills.
🌐
Quora
quora.com › What-is-the-best-way-of-practicing-your-coding-skills-in-Java
What is the best way of practicing your coding skills in Java? - Quora
Answer (1 of 15): There are multiple ways to do this..it actually depends on what excites you? if you like problem solving using java then try for solving problems on sites like For learning, refreshing, or just for fun! • /r/dailyprogrammer ,hackerrank.com,HackerEarth - Programming challenges ...
🌐
w3resource
w3resource.com › java-exercises
Java programming Exercises, Practice, Solution - w3resource
This resource offers a total of 5356 Java Programming problems for practice.
🌐
Blogger
javarevisited.blogspot.com › 2017 › 07 › top-50-java-programs-from-coding-Interviews.html
Top 50 Java Programs from Coding Interviews
Now, let's see a couple of System deign questions which you can also prepare for programming interviews: 1. Difference between JWT, OAuth, and SAML? (answer) ... 9. Difference between Kafka, ActiveMQ, and RabbitMQ? (answer) That's all about top 50 programs from Java interviews. You can practice these Java programs even if you are not preparing for any Job interview.
🌐
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 - If your child is ready to move beyond the absolute basics and tackle more challenging problems, LeetCode is where serious Java learners go. This platform hosts thousands of coding problems, many of which are actual interview questions from major tech companies. LeetCode's strength lies in its depth. You'll find problems ranging from easy to hard, covering data structures, algorithms, dynamic programming, and more. The platform also provides detailed solutions and explanations for each problem, which means kids are both practicing and learning the reasoning behind different approaches.
🌐
Exercism
exercism.org › tracks › java
Java on Exercism
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. ... Get better at programming through fun, rewarding coding exercises that test your understanding of concepts with Exercism.
🌐
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.
🌐
GUVI
guvi.in › blog › interview › java interview questions for freshers with clear & concise answers
Top 10 Java Programs For Freshers
1 month ago - You now have 55 carefully selected Java interview questions that cover both theory and real-world application. The first 40 questions strengthen your understanding of fundamental concepts like OOP, collections, exception handling, and memory management. The 10 scenario-based questions help you think through real programming challenges that reflect the problems developers solve every day. Practice every question until you can explain the concept and write the code confidently.