GeeksforGeeks
geeksforgeeks.org › java › java-programming-examples
Java Programs - Java Programming Examples - GeeksforGeeks
September 25, 2025 - This page covers Java programming examples from basics like Fibonacci, Prime numbers, Factorials and Palindromes to advanced topics such as Arrays, Strings and OOP concepts.
University of Texas
cs.utexas.edu › ~scottm › cs307 › codingSamples.htm
Java Coding Samples
Another example of recursion from the game minesweeper. GenericListVersion2. Changed the GenericList class so that it implements the Iterable interface in order to demonstrate how to implement an iterator using an inner class. GenericListVersion3. Changed GenericList so it is generic based on Java generics syntax instead of relying on Object.
What are your favorite examples of "good code"?
Nothing comes close to guava in quality. More on reddit.com
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
BEST IDE FOR JAVA
Hands down IntelliJ. Everything else is garbage. I worked years with eclipse, netbeans and all the flavors of them and they all suck. IntelliJ is not perfect by any means, but the others are so bad, that IntelliJ looks like alien technology compared to them. More on reddit.com
Best Java programming software? My teacher told me to use Notepad++
Start with notepad++ if your teacher asks you to. You will understand how to manage your project, what is a classpath, what does a compilation step do, etc. Many of those things are automatically handled by advanced IDE, and if you skip the Notepad step, you might just assume that stuff somehow works under the hood, but not really understand how any of that works. More on reddit.com
Videos
23:55:56
Java Full Course 2026 | Learn Java Programming In 24 Hours | Advanced ...
12:00:00
Java Full Course for free ☕ (2025) - YouTube
07:55:04
Advanced Java Programming A Comprehensive Full Course ⭐ Advance ...
50:32
Modern Java in Action - YouTube
04:13:04
Advanced Java Full Course 2023 | Advance Java Tutorial | J2EE, ...
44:23
Advanced Java tutorial | Advanced Java | Advanced Java Tutorial ...
W3Schools
w3schools.com › java › java_examples.asp
Java Examples
Strings Concatenation Numbers and Strings Special Characters Code Challenge Java Math Java Booleans · Booleans Real-Life Example Code Challenge Java If...Else
GitHub
github.com › janbodnar › Java-Advanced
GitHub - janbodnar/Java-Advanced: Examples for Advanced Java course
Starred by 58 users
Forked by 27 users
Languages Java 98.1% | Java 98.1%
iO Flood
ioflood.com › blog › java-code-examples
Mastering Java with Code Examples | Beginner to Expert
February 29, 2024 - We then delved into more advanced topics, such as using interfaces, inheritance, exception handling, and file I/O, with each example accompanied by a detailed explanation. We also discussed alternative ways to solve problems in Java, such as using different data structures, design patterns, or third-party libraries. Each alternative was illustrated with a code example and an explanation of when and why to use it.
Medium
vaheaslanyan7.medium.com › mastering-java-a-deep-dive-into-advanced-techniques-and-concepts-e32d40d9fcbe
Mastering Java: A Deep Dive into Advanced Techniques and Concepts | by Vahe Aslanyan | Medium
January 4, 2024 - In this advanced example, we’ll introduce dynamic polymorphism by creating a ShapeCalculator class that operates on a list of Shape objects. This allows us to add more shapes without modifying the ShapeCalculator class, promoting code adaptability. import java.util.ArrayList; import ...
Programiz
programiz.com › java-programming › examples
Java Examples | Programiz
The page contains examples on basic concepts of Java. You are advised to take the references from these examples and try them on your own. All the programs on this page are tested and should work on all platforms. Want to learn Java by writing code yourself?
W3Schools
w3schools.com › java
Java Tutorial
Strings Concatenation Numbers and Strings Special Characters Code Challenge Java Math Java Booleans · Booleans Real-Life Example Code Challenge Java If...Else
Atma Ram Sanatan Dharma College
arsdcollege.ac.in › wp-content › uploads › 2020 › 05 › Programming_in_Java_-_week9.pdf pdf
ADVANCED JAVA PROGRAMS PRACTICAL 1 Objective
ADVANCED JAVA PROGRAMS · Write a program to create a frame using AWT. Implement mouseClicked(), mouseEntered() and
Sanfoundry
sanfoundry.com › java-programming-examples
Java Programming Examples - Sanfoundry
October 9, 2023 - In addition to the above categories, the Java programming examples also include programs on data structures and algorithms. These programs cover a wide range of topics, such as trees, heaps, linked lists, hash tables, stacks, and queues. ... Java Program to Find Sum of Series 1^2 + 2^2 + …. + n^2. Java Program to Find Sum of the Series 1/1! + 2/2! + 3/3! + ……1/N! Java Program to Find Sum of the Series 1/1!+1/2!+1/3!+…1/N!
Itcollege
enos.itcollege.ee › ~jpoial › allalaadimised › reading › Advanced-java.pdf pdf
Advanced java
be avoided in most cases: it is always possible to find another way to reuse the required functionality, keeping the code clean and ... Factory pattern is proven to be extremely useful technique in the hands of software developers. As such, it has several flavors in · Java, ranging from factory method to abstract factory. The simplest example of factory pattern is a static method which · returns new instance of a particular class (factory method). For example: package com.javacodegeeks.advanced.construction.patterns;
TutorialsPoint
tutorialspoint.com › java › index.htm
Java Tutorial
In this tutorial, you will learn ... exception handling, and many more. The first example in Java is to print "Hello, World!" on the screen....
GeeksforGeeks
geeksforgeeks.org › advance java › advanced-java
Advanced Java Tutorial - GeeksforGeeks
2 weeks ago - Advanced Java ... JDBC allows Java applications to connect and interact with databases like MySQL. Learn to perform CRUD operations, manage transactions and use different types of statements effectively. ... Servlets are Java programs that run on a web server to handle client requests dynamically. Topics include servlet creation, lifecycle, filters and CRUD operations. ... JSP enables dynamic web content generation with embedded Java code...
DataCamp
datacamp.com › blog › java-projects-for-all-levels
14 Java Projects For All Levels: Beginner, Intermediate, & Advanced | DataCamp
September 22, 2024 - Discover ideas for Java projects across all experience levels from beginner to advanced.
W3Schools
w3schools.com › java › java_syntax.asp
Java Syntax
Every line of code that runs in Java must be inside a class. The class name should always start with an uppercase first letter. In our example, we named the class Main.