JavaRush
Promotion
Learning
Courses
Tasks
Quizzes
Games
Help
Schedule of nudges
Internship
Community
Users
Forum
Chat
Articles
Success stories
Activities
Reviews
Subscriptions
Light theme

Lectures

  • Reviews
  • About us
  • CS50
Start
Start learning
Start learning
  • My progress
  • Courses
  • Quest map
  • Lectures
  • A success story. How to use programming to advance in any field

    New Java Syntax
    15 level,0 lecture
    You can learn to program and not become a programmer, but instead apply your new skill to advance your current career Sergey, a Moscow resident, shared his success story with JavaRush students. He used the course to study for 3.5 years, but still isn't working as a developer. What went wrong? Or perhaps everything...
    Open
  • Stack trace

    New Java Syntax
    15 level,1 lecture
    A stack obeys the "first in, last out" principle. In Java, the StackTrace rule says: Remember that the last function called is the first function to end. That is, if function A calls function B, which calls function C, which calls function D, then returning from function B requires that we first return from function C, which requires that we first return from function D.
    Open
  • Practice displaying the stack trace

    New Java Syntax
    15 level,2 lecture
    A stack is like a stack of plates at a cafeteria. If for some reason the third plate from the top catches your fancy, you'll have to remove the top two to get to it. The Java call stack is a special collection that the virtual machine uses to record all function calls. We'll learn how to get the plate we want by completing some tasks involving StackTrace.
    Open
  • Introducing exceptions

    New Java Syntax
    15 level,3 lecture
    Previously, when an error occurred in a method, the program would terminate. Now the Java machine creates a special object (an exception), which stores information about the error. The program exits the current method, then exits the method that called that method, and so on until it reaches the main method. For the program to continue working, the exception must be "caught".
    Open
  • Exception types

    New Java Syntax
    15 level,4 lecture
    In Java, exceptions are divided into two types: checked and unchecked, i.e. exceptions that must be caught and exceptions that do not have to be caught. By default, all exceptions must be caught. Now we'll try to understand how to work with exceptions thrown by the Java machine.
    Open
  • How exceptions work

    New Java Syntax
    15 level,5 lecture
    Exceptions are a very elegant and convenient mechanism for dealing with errors. But to work with them, you must understand some things about Java programming, and you need to get used to how the call stack unwinds. In this lesson, let's look at an example of how to create, throw, and catch exceptions.
    Open
  • Catch me if you can

    New Java Syntax
    15 level,6 lecture
    By Level 9, JavaRush students have already completed dozens of tasks. But not without some mistakes, right? Previously, the program would terminate if an error occurred. Now Java has exceptions and a special "trap" for exceptions: the try-catch block. Let's complete several tasks involving exceptions while working with numbers, strings, arrays, and collections.
    Open
  • How multi-catch works

    New Java Syntax
    15 level,7 lecture
    The catch statement, which is used to catch exceptions, can catch multiple exceptions. What does using a single multi-catch block do for you? It makes code simpler and more understandable, eliminates repetition, and is mood-enhancing (this last property is an optional consequence of using multi-catch).
    Open
  • Multiple tasks about multi-catch

    New Java Syntax
    15 level,8 lecture
    How multi-catch works? If an exception occurs in a try block, execution of the program jumps to the first catch. If the type specified inside the catch statement matches the exception type, then the code inside the {} block starts executing. Otherwise, execution moves to the next catch and the check is repeated. Now let's practice to help reinforce this concept.
    Open
  • Additional lessons for Level

    New Java Syntax
    15 level,9 lecture
    In this level, you learned how and why exceptions occur. This is a very important topic for your future work as a programmer. We are sure you won't be hurt by seeing a few more real-world examples and a couple of additional articles. Catching and handling exceptions This interesting article will help...
    Open
Learn
  • Registration
  • Java course
  • Help with tasks
  • Pricing
Community
  • Users
  • Articles
  • Forum
  • Chat
  • Success stories
  • Activities
Company
  • About us
  • Contacts
  • Reviews
  • FAQ
  • Support
JavaRushJavaRush — is an interactive online course for learning Java programming from scratch. It contains 1200 practical tasks with one-click solution checking, the necessary minimum of theory on Java basics, and motivating features that help you complete the course: games, quizzes, interesting projects and articles on effective learning and the career of a Java developer.
Follow us
Язык интерфейса
Русский
English
Українська
"Programmers are not born" © 2025 JavaRush
MastercardVisa
"Programmers are not born" © 2025 JavaRush