SOLID Principles in Java

solid principles java

This article explains SOLID principles, they are very popular in Object-Oriented Design. We will explore these principles in the context of the Java programming language. SOLID principles of object-oriented design provide the more extendable and clear architecture of your application. The author of SOLID principles is Rober C. Martin. He is the father of a lot of significant publications and books: Clean Code and others. Single Responsibility Principle This principle states that the class must have only one responsibility and it should only have one reason to change. As a…

Read More

Multithreading in Java. Overview of Runnable, Thread, Object.

Многозадачность

Two basic entities represent multithreading in Java. There are processes and threads. Java uses threads more often in multithreading programming. However, there are multi-process applications in Java as well. Processes in Java A process is a self-contained program with an execution environment. Each process has its own memory space. Often the term process refers to an entire application. Communication between processes happens by IPC resources: pipelines or sockets. To create a multi-process application, use the ProcessBuilder class. Threads in Java Thread – often referred to as a lightweight process. Like…

Read More