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
  • Without Java, we would have a Javapocalypse

    New Java Syntax
    Level 9, Lesson 9
    You’ve almost completed Level 8! With all these lectures and tasks, you need a break. Learning Java may be tough, but remember: the world can’t exist without Java! What if it suddenly disappeared one day? What would happen to our familiar surroundings? Make yourself comfortable and watch an exciting and fun video about the real Javapocalypse. :)
    Available
  • Tasks

    New Java Syntax
    Level 9, Lesson 10
    In life, do you often misunderstand what others want from you? Alas, this can happen with any work, even programming: a developer's job is sometimes assigned by someone who isn't too familiar with the features of the work of the person writing the code. Some of the task conditions may seem incomprehensible, or maybe everything is clear from the outset?
    Available
  • Knowledge vs. skills

    New Java Syntax
    Level 10, Lesson 0
    College education has led us to think that there are no fundamental differences between theory and practice. No, of course you realize the two are not the same. Still, you don't see any critical difference. However, it does exist. Most people equate "I know" with "I can". Do you ever do that? Consider the following...
    Available
  • How to create objects

    New Java Syntax
    Level 10, Lesson 1
    An object is a variable whose type is a class. Or an instance of a class, if you like. This means that an object is created just like any new variable, or more precisely, like any reference variable. This lesson will teach you the syntax for creating objects, and give you your first exposure to special and super useful methods known as getters and setters.
    Available
  • Practice creating objects

    New Java Syntax
    Level 10, Lesson 2
    At the secret CodeGym center, you'll practice on cats and dogs all over the place. But animal-rights advocates can be calm: No animal used as an object has been harmed during this practice. We have already dealt with the theory of creating classes and objects. It's time to do some tasks, get used to the syntax, and make sure it's right.
    Available
  • Initializing objects. Initialize method

    New Java Syntax
    Level 10, Lesson 3
    Initialization is basically initiation into the world of objects! Someday (in fact, very soon, if you don't quit) you'll learn what encapsulation is and why it is needed. Meanwhile, we'll take our first step toward it by learning what it means to initialize objects and why we need to do it.
    Available
  • Practicing initializing objects

    New Java Syntax
    Level 10, Lesson 4
    When an object is created, you have to assign initial data to its variables. This prevents situations where you might access an object that doesn't have the internal information it needs to work properly. Let's complete some initialization tasks: we'll begin by creating valid cats, dogs, friends, and other objects.
    Available
  • Constructors

    New Java Syntax
    Level 10, Lesson 5
    Some people think programmers are like construction workers who erect buildings. There's something to this analogy. But today we're going to talk about a different kind of constructor. Since all objects must be initialized one way or another, special abbreviated initializers were invented to perform this process. They are called constructors.
    Available
  • Practice with constructors

    New Java Syntax
    Level 10, Lesson 6
    You won't find a constructor wearing a hard hat at a construction site. It's a special method for initializing objects. It's where you write initial values for an object's fields (though not necessarily all of them). A constructor has the same name as the class. One class can have many constructors. Or just one...known as the default constructor. We'll master all this through practice.
    Available
  • Additional lessons for Level

    New Java Syntax
    Level 10, Lesson 7
    In past lessons, you learned more about what a typical Java program is and what its design looks like. How objects are created (and what this has to do with constructors) and how variables are initialized. Brace yourself: there will be a lot of extra reading this time. But...
    Available
  • Why people fail to have great careers

    New Java Syntax
    Level 10, Lesson 8
    You don’t have to unplug your brain to prevent a meltdown due to an overabundance of new information. We just need to feed it something simple that’s still interesting. Let’s watch an inspiring speech by Larry Smith about why people fail to have great careers unless they follow their passion and see opportunities instead of obstacles.
    Available
  • Final tasks

    New Java Syntax
    Level 10, Lesson 9
    There's no such thing as extra tasks in the study of programming! The professor at the secret CodeGym center is 1000% convinced of this. That's why several tasks must be completed at the end of the level. Some of them are more advanced and require student's to be able to google. Or think. Or think and google.
    Available
  • 1
  • ...
  • 7
  • 8
  • 9
  • 10
  • 11
  • ...
  • 61
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 © 2025 CodeGym
MastercardVisa
Programmers Are Made, Not Born © 2025 CodeGym