Surveys & Quizzes
Start learning now
All Articles List
You must belong to more groups
3 April 2020 9:56
Spring sale on CodeGym: discounts are as good as vitamin C
Hey! Did you know that a good mood and activities for your own pleasure may boost your immune system? Let’s bring you some good news and say that the season of really cool discounts has started on CodeGym. Until April 17th, you can get an annual subscription at 50% OFF...
2 April 2020 11:51
Better together: Java and the Thread class. Part VI — Fire away!
Threads are an interesting thing. In past reviews, we looked at some of the available tools for implementing multithreading. Let's see what other interesting things we can do. At this point, we know a lot. For example, from "Better together: Java and the Thread class. Part I — Threads of execution", we know that...
1 April 2020 11:10
Better together: Java and the Thread class. Part V — Executor, ThreadPool, Fork/Join
So, we know that Java has threads. You can read about that in the review entitled Better together: Java and the Thread class. Part I — Threads of execution. Let's take another look at the typical code...
31 March 2020 15:53
Better together: Java and the Thread class. Part IV — Callable, Future, and friends
In Part I, we reviewed how threads are created. Let's recall one more time. A thread is represented by the Thread class, whose run() method gets called. So let's use the Tutorialspoint online Java compiler and execute the following code...
30 March 2020 9:43
Better together: Java and the Thread class. Part III — Interaction
A brief overview of the particulars of how threads interact. Previously, we looked at how threads are synchronized with one another. This time we will dive into the problems that may arise as threads interact, and we'll talk about how to avoid them. We will also provide some useful links for more in-depth study...
27 March 2020 10:19
Better together: Java and the Thread class. Part II — Synchronization
So, we know that Java has threads. You can read about that in the review entitled Better together: Java and the Thread class. Part I — Threads of execution. Threads are necessary to perform work in parallel. This makes it highly likely...
26 March 2020 18:18
Better together: Java and the Thread class. Part I — Threads of execution
Multithreading was built into Java from the very beginning. So, let's briefly look at this thing called multithreading. We take the official lesson from Oracle as a reference point: "Lesson: The "Hello World!" Application". We'll slightly alter...
26 March 2020 16:42
Examples of reflection
Maybe you've encountered the concept of "reflection" in ordinary life. This word usually refers to the process of studying oneself. In programming, it has a similar meaning — it is a mechanism for analyzing data about a program, and even changing the structure and behavior of a program, while the program is running.
26 March 2020 15:53
equals and hashCode methods: best practices
Hi! Today we'll talk about two important methods in Java: equals() and hashCode(). This isn't the first time we've met them: the CodeGym course begins with a short lesson about equals() — read it if you've forgotten it or haven't seen it before...
26 March 2020 9:28
Inner classes in a local method
Hi! Let's talk about another kind of nested classes. I'm talking about local classes (method-local inner classes). Before diving in, we must first remember their place in the structure of nested classes. From our diagram, we can see that local classes are a subspecies of inner classes...
26 March 2020 7:43
Nested inner classes
Hi! Today we'll take up an important topic: how nested classes work in Java. These internal classes are called nested. They are divided into 2 types: Non-static nested classes (these are also called inner classes), Static nested classes. In turn, inner classes have two distinct subcategories...
26 March 2020 6:55
Hi! In today's lesson, we'll continue to examine the topic of nested classes. Now it's time for the last group: anonymous inner classes. Like the local classes that we talked about in the last lesson, anonymous classes are a kind of inner class... They also have several similarities and differences...
Terms and Policy
Accept and close