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
  • An out-of-college degree

    New Java Syntax
    Level 11, Lesson 0
    Let's talk about education. About what it really is. And also about what, contrary to what most people think, it is not. Most people primarily associate education with universities, which they enter after high school. They believe that a good education received at a decent and respected...
    Available
  • Object visibility and null references

    New Java Syntax
    Level 11, Lesson 1
    If an object exists, it means that somebody needs it... In Java, this is how it works after an object is created, it exists (lives) as long as at least one variable is storing its address (there is at least one reference to it). If there are no more references, the object dies. The garbage collector comes for it and... Actually, everything isn't so tragic as it sounds. Quite the contrary.
    Available
  • Static variables and methods

    New Java Syntax
    Level 11, Lesson 2
    Let's dig into "static". Methods can be static and non-static. Ordinary methods are called on an object and have access to its data. Static methods don't have this access: They simply don't have an object reference. They are able to access a class's static variables and other static methods. The details are in the lesson.
    Available
  • Static classes and methods

    New Java Syntax
    Level 11, Lesson 3
    Variables, methods, and even classes can be static. You'll learn what this is about and why you need it in higher levels, but for now you can look at the example and ponder what's going on here. We'll use a public static cast as a guinea pig. Sounds intriguing, doesn't it?
    Available
  • Practice with static methods

    New Java Syntax
    Level 11, Lesson 4
    The topics we're raising here are laying solid groundwork for the future. It may not be entirely clear why everything is arranged this way, but it's already clear enough to practice doing tasks. We'll examine static methods as we create them in tasks. By the way, have you noticed that the main() method is also totally static?
    Available
  • Popular compilation errors

    New Java Syntax
    Level 11, Lesson 5
    "Hey, young recruit, who makes a bunch of mistakes every day, even in the simplest programs!" "Um... Hi, Diego. Boy, you really know how to cheer people up!" "Of course, I do! Learn how to say what needs to be said. Like I said, 'every day'. Putting it more politely, my greeting means...
    Available
  • Popular mistakes made by novice programmers

    New Java Syntax
    Level 11, Lesson 6
    "Hi, Amigo! Let's continue to talk about mistakes. This time, we'll explore mistakes that the compiler will not always help you with. Pay attention and you'll learn something about yourself." "I'm ready to listen, Diego. I hope this won't be too embarrassing for me...
    Available
  • Additional lessons for Level

    New Java Syntax
    Level 11, Lesson 7
    In this level, we have taken a few more steps forward in learning Java. We explored class loading and talked about static variables, methods, and classes. We figured out the most common reasons why the compiler yells at you, as well as the situations where you need to be especially careful to avoid...
    Available
  • Nerd break: The Streaming

    New Java Syntax
    Level 11, Lesson 8
    Before tackling the last batch of tasks in not just this level, but in the entire first quest, you deserve a good rest! Then you’ll be ready to finish all that remains. But be prepared to have your nerves jangled by this video. It’s a thriller about going completely crazy for Java, based on a novel by Stephen King. :)
    Available
Learn
  • Registration
  • Java Course
  • Help with Tasks
  • Pricing
  • Game Projects
  • 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