CodeGym
Promotion
CodeGym University
Learning
Courses
Tasks
Surveys & Quizzes
Games
Help
Schedule
Community
Users
Forum
Chat
Articles
Success stories
Activity
Reviews
Subscriptions
Light theme

Lessons

  • Reviews
  • About us
Start
Start learning
Start learning now
  • My Progress
  • Courses
  • University
  • Quest Map
  • Lessons
  • Learn Java Programming from Scratch

    JAVA 25 SELF
    Level 1, Lesson 0
    Start your programming journey with Java together with CodeGym! Learn why your experience and age are an advantage, how Java opens doors to the world of games, web, mobile, and cloud applications, and how community support will help you become a Junior Java Developer. Thousands of people have already changed their lives — now it’s your turn!
    Available
  • Commands and your first program in Java

    JAVA 25 SELF
    Level 1, Lesson 1
    In this lecture, you will learn what commands are in programming, how a minimal program in Java 21+ works, what the main() method is, and how to write your first program that prints text to the screen. Everything is explained simply, with examples and a step-by-step guide for beginners.
    Available
  • Console output in Java: System.out.println and System.out.print

    JAVA 25 SELF
    Level 1, Lesson 2
    In this lecture, you will get acquainted with the commands for printing to the screen in Java: System.out.println and System.out.print. You will learn how to correctly output numbers and strings, how these commands differ, how to concatenate strings, and you will also go through typical beginner mistakes.
    Available
  • Introduction to variables

    JAVA 25 SELF
    Level 1, Lesson 3
    In this lecture you will learn what variables are in Java, how they work, how to declare and use them, and you will also get familiar with variable naming rules. Everything is explained with simple analogies and code examples.
    Available
  • Variable Types

    JAVA 25 SELF
    Level 1, Lesson 4
    In this lecture, you will learn how to declare variables in Java, get acquainted with the basic data types ( int and String), learn to assign values, print variables to the screen, and concatenate strings with numbers.
    Available
  • Compiler and Comments

    JAVA 25 SELF
    Level 1, Lesson 5
    In this lecture you will learn why a compiler is needed in Java, how it works, what errors it can find, and you will also get acquainted with comments in code: their types, purpose, and amusing examples from programmers’ lives.
    Available
  • Level 1 recap: why learn Java and what you already know how to do

    JAVA 25 SELF
    Level 1, Lesson 6
    In this final lecture of level one, you will learn why Java is one of the most in-demand programming languages, where it is used (from banking to mobile apps), and you will recap your first achievements on CodeGym. Congratulations on completing the first level, and we invite you to keep going!
    Available
  • The IT Industry and You

    JAVA 25 SELF
    Level 2, Lesson 0
    In this lecture, you will learn how the information revolution changed the world, why IT companies became the largest and most valuable, what opportunities a career in IT opens up, and why now is the best time to become a programmer. Examples, numbers, and inspiring facts!
    Available
  • Integers: int type, operations with int

    JAVA 25 SELF
    Level 2, Lesson 1
    In this lecture you will learn how to work with integers in Java using the int type: value range, declaring variables, assignment, arithmetic operations, division, remainder, increment and decrement. Examples and explanations will help you quickly master the basics of working with integer variables.
    Available
  • Strings and text: the String type, working with strings

    JAVA 25 SELF
    Level 2, Lesson 2
    In this lecture you’ll get acquainted with the String type in Java: you’ll learn how to create and initialize string variables, perform concatenation, escape special characters, and use basic methods for working with text. Practical examples and explanations will help you work confidently with strings in your programs.
    Available
  • Conversion between data types

    JAVA 25 SELF
    Level 2, Lesson 3
    In this lecture, you will learn how to convert values between strings and numbers in Java, why this is needed, what methods exist, and what to pay attention to when working with data types. Code examples and explanations will help you avoid common mistakes during conversion.
    Available
  • Memory addressing and variables

    JAVA 25 SELF
    Level 2, Lesson 4
    Dive into the basics of how memory works in Java: how variables are placed in RAM, what addressing is, how primitive types and objects are arranged, and why programmers count from zero. This lecture will help you understand how Java manages memory and what happens “under the hood” when working with variables and strings.
    Available
  • 1
  • 2
  • 3
  • ...
  • 30
Learn
  • Registration
  • Java Course
  • Help with Tasks
  • Pricing
  • Java Syntax
Community
  • Users
  • Articles
  • Forum
  • Chat
  • Success Stories
  • Activity
  • Affiliate Program
Company
  • About us
  • Contacts
  • Reviews
  • Press Room
  • CodeGym for EDU
  • FAQ
  • Support
CodeGym CodeGym is an online course for learning Java programming from scratch. This course is a perfect way to master Java for beginners. It contains 1200+ tasks with instant verification and an essential scope of Java fundamentals theory. To help you succeed in education, we’ve implemented a set of motivational features: quizzes, coding projects, content about efficient learning, and a Java developer’s career.
Follow us
Interface language
English
Deutsch Español हिन्दी Français Português Polski বাংলা 简体中文 मराठी தமிழ் Italiano Bahasa Indonesia 繁體中文 Nederlands 日本語 한국어 Bulgarian Danish Hungarian Basa Jawa Malay Norwegian Romanian Swedish Telugu Thai Українська Filipino Turkish Azərbaycan Русский Vietnamese
Programmers Are Made, Not Born © 2026 CodeGym
MastercardVisa
Programmers Are Made, Not Born © 2026 CodeGym