Promotion
CodeGym University
Learning
Course
Tasks
Surveys & Quizzes
Games
Help
Schedule
Community
Users
Forum
Chat
Articles
Success stories
Activity
Reviews
Subscriptions
Light theme
Java Blog
Reviews
About us
Start
Start learning
Start learning now
Articles
Authors
All groups
All Articles List
You must belong to more groups
Create article
All groups
New
Viacheslav
Multithreading in Java
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...
Viacheslav
Multithreading in Java
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...
Viacheslav
Multithreading in Java
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...
Viacheslav
Multithreading in Java
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...
Viacheslav
Multithreading in Java
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...
Viacheslav
Multithreading in Java
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...
Alex Vypirailenko
Core Java
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.
Milan Vucic
Java Objects
26 March 2020 15:53
Equals Method in Java: 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...
Oleksandr Miadelets
Java Classes
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...
John Selawsky
Java 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...
John Selawsky
Java Classes
26 March 2020 6:55
Anonymous classes
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...
Oleksandr Miadelets
Inheritance in Java
26 March 2020 6:00
Examples of inheritance of nested classes
Hi! Today we'll look at an important mechanism: inheritance in nested classes. Have you ever thought about what you would do if you needed to make a nested class inherit some other class. If not, believe me: this situation can be confusing, because there are a lot of nuances...
Show more
1
...
54
55
56
57
58
...
68
Please enable JavaScript to continue using this application.