CodeGym
AI Academy
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
  • Non-higher non-education

    Kotlin SELF
    Level 12, Lesson 0
    In this article, we break down the myths and the reality of higher education: why a diploma does not guarantee success, how the role of universities is changing in the modern world, why practice matters more than theory, and what you actually need for professional growth. This material is for those who want to learn effectively and be in demand as a specialist.
    Available
  • Getting to know exceptions

    Kotlin SELF
    Level 12, Lesson 1
    We break down how compile-time errors differ from runtime errors, why an exception is not “just another if”, but a mechanism for an emergency change in the execution flow. We look at typical causes ( NumberFormatException, ArithmeticException, ArrayIndexOutOfBoundsException), the top of the Throwable → Exception/ Error hierarchy, learn to read the exception name and the first lines of the stack trace, and using the console app BudgetBuddy as an example, observe where exactly execution “breaks”.
    Available
  • try/catch for expected errors

    Kotlin SELF
    Level 12, Lesson 2
    We break down when Kotlin really needs try / catch: why toIntOrNull() does not always help, how to catch specific exceptions ( NumberFormatException, ArithmeticException), how to write a minimal try, use try as an expression, and build resilient input using the pattern “catch → explain → continue”.
    Available
  • finally and throw

    Kotlin SELF
    Level 12, Lesson 3
    We break down two key error-handling tools in Kotlin: the finally block for “cleanup”, which runs always (even with return and when an exception occurs), and the throw keyword for explicitly throwing exceptions (for example, IllegalArgumentException). We also discuss the Nothing type and the pattern with the Elvis operator ?:, and at the end we assemble a mini app with input validation and guaranteed finalization via try/ catch/ finally.
    Available
  • Stack trace and a basic debugger

    Kotlin SELF
    Level 12, Lesson 4
    We break down what a stack trace is in Kotlin/JVM, how to quickly extract answers from the “red text” to the questions “what happened” (the exception type, e.g., NumberFormatException) and “where it happened” (file and line File.kt:NN). In practice, using a mini app ExpenseBuddy, we learn to set a breakpoint before a risky line, use Step Over/ Step Into, inspect Variables and the live Call Stack, and finally we lock in common mistakes when reading traces and debugging.
    Available
  • Multiple catch blocks

    Kotlin SELF
    Level 12, Lesson 5
    We break down how Kotlin chooses a catch handler (the first matching one from top to bottom), why the order of blocks is critical because of the exception hierarchy, how to choose a reasonable handling “granularity” and not turn try/ catch into a trash container. In practice, we catch NumberFormatException, ArithmeticException, ArrayIndexOutOfBoundsException, refactor a large try into narrower blocks, and discuss common mistakes.
    Available
  • Writing Code

    Kotlin SELF
    Level 12, Lesson 6
    A lecture about a typical developer workday and how the task workflow is usually organized: from tracking in JIRA to commits in Git and reviews via Pull Request.
    Available
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