CodeGym
Promotion
CodeGym University
Learning
Course
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
  • Quest map
  • Lessons
All quests Java Syntax Java Core Java Multithreading Java Collections JSP & Servlets Module 3. Java Professional Module 4. SQL & Hibernate Module 5. Spring Spring
All levels Level 0 Level 1 Level 2 Level 3 Level 4 Level 5 Level 6 Level 7 Level 8 Level 9 Level 10 Level 11 Level 12 Level 13 Level 14 Level 15 Level 16 Level 17 Level 18 Level 19 Level 20 Level 21 Level 22 Level 23 Level 24 Level 25 Level 26 Level 27 Level 28
  • You've reached Level 25

    Java Multithreading
    Level 5, Lesson 0
    You've reached Level 25
    Available
  • Enum and all its features

    Java Multithreading
    Level 5, Lesson 1
    "Hi, Amigo!" "Hi, Amigo!" "I'm going to tell you about something very interesting. It's pretty simple, but that makes it even more interesting. It's called an enum. An enum is a type that defines the specific set of values that a variable can have. Let's look at an example right off ..."
    Available
  • Practice using enum

    Java Multithreading
    Level 5, Lesson 2
    "Hi, Amigo!" "Bilaabo came up with a task for you. Enjoy, my friend ..."
    Available
  • Thread life cycle and thread states

    Java Multithreading
    Level 5, Lesson 3
    "Hi, Amigo!" "We're going to start a new topic: threads." "Let's get started. Today we will examine the states that a Thread object passes through (or might pass through) when a thread is running." "How many states can you name right now, Amigo?" "Two. The first is a thread before the start() method is called: the object exists, but the thread isn't active yet. And the second is after the start() method has been called ..."
    Available
  • All the nuances of creating and starting a new thread. Daemons.

    Java Multithreading
    Level 5, Lesson 4
    "Here's a new and interesting topic." "It turns out you can start threads in different modes." "A standard program (with only one thread) stops running when the main thread finishes its work. The main thread finishes executing, the program terminates, and the JVM frees its memory ..."
    Available
  • Practice with the current thread state

    Java Multithreading
    Level 5, Lesson 5
    "Hi, Amigo! How are you feeling?" "Excellent. I learned so many new things today. Especially about thread states." "Oh, that's great. Here, let's test your knowledge ..."
    Available
  • All the nuances of interrupting/stopping threads

    Java Multithreading
    Level 5, Lesson 6
    "Hi, Amigo! "Everything new is just something old that we've forgotten. Today I'll talk about stopping threads. I hope you've already forgotten how the interrupt() method works." "Yes, Ellie, I've completely forgotten it." "Great. Then I'll remind you." "In Java, if someone wants to stop a running thread, he can signal this to the thread. To do this, you need to set the Thread object's hidden isInterrupted variable to true ..."
    Available
  • Practice interrupting threads

    Java Multithreading
    Level 5, Lesson 7
    "I was just waiting for you. There's so much interesting work for you here ..."
    Available
  • The call stack and catching errors

    Java Multithreading
    Level 5, Lesson 8
    "Hi, Amigo! "I want to tell you about something small, but interesting." "I'm listening. I love things that are small and interesting." "Well, you know that every Thread object has a run() method. And that you can execute it on a separate thread using the start() method." "Yes, of course." "But now imagine this situation: you start a thread to perform some work, but an exception is thrown and the thread stops running ..."
    Available
  • Practice catching thread errors

    Java Multithreading
    Level 5, Lesson 9
    "How come you always get exactly 3 tasks?" "How about doing another 50?" "50? O_o" "I guess it would be better to just do the usual 3 ..."
    Available
  • Other methods of the Thread class (sleep, yield…)

    Java Multithreading
    Level 5, Lesson 10
    "Hi, Amigo!" "Now I'll tell you a little about the sleep, yield, and join methods." "That's boring. I just found an interview question: 'What's the difference between the yield(), sleep(), and wait() methods?'. Can you explain that?" "No problem. First off, these are three completely different methods ..."
    Available
  • Practice using yield and surrendering time slices

    Java Multithreading
    Level 5, Lesson 11
    "Hi, Amigo! Keep practicing! Here are a couple of tasks for you ..."
    Available
  • 1
  • 2
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 Java developer’s career.
Follow us
Interface language
Programmers Are Made, Not Born © 2023 CodeGym
MastercardVisa
Programmers Are Made, Not Born © 2023 CodeGym
This website uses cookies to provide you with personalized service. By using this website, you agree to our use of cookies. If you require more details, please read our Terms and Policy.