Java practice tasks

Coding exercises and interview-style problems. Work through real tasks from basics to collections and algorithms — sorted by topic and level.

How to Create and Run Your First Java Application

Beginner Java Core

Practice tasks: compile and run your first Java application from the command line, pass arguments to main(), build a JAR and add it to the classpath with -cp.

⏱ ~20 min Open →

Java Syntax Basics: Variables, Identifiers, and Structure

Beginner Java Core

Practice Java syntax with hands-on tasks: literals, primitive type casting table, calculator methods, and reading user input with Scanner. With solutions.

⏱ ~20 min Open →

Basic Operations in Java: Arithmetic and Logical

Beginner Java Core

Practice Java operations with four tasks: even number check, minimum by absolute value, a bitwise garland, and averaging numbers. Solutions included.

⏱ ~20 min Open →

Sorting Algorithms in Java: Basics and Examples

Beginner Java Core

Learn how to debug, analyze, and improve Bubble Sort and Selection Sort algorithms in Java. Step-by-step tables, tasks, and code optimization tips.

⏱ ~20 min Open →

Operators

Beginner Java Core

Practice Java basics with beginner coding tasks using if, switch, for, while, and do-while. Great for students and interview prep.

⏱ ~20 min Open →

Arrays in Java: How to Create and Use Them

Beginner Java Core

Java array exercises for beginners: create 1D and 2D arrays, find max and min, use Arrays.binarySearch() and System.arraycopy(). With solutions.

⏱ ~20 min Open →