Java

ThreadPoolExecutor - Java Thread Pool Example — step-by-step Programming tutorial on Progressive Robot

ThreadPoolExecutor – Java Thread Pool Example

URL: https://www.progressiverobot.com/threadpoolexecutor-java-thread-pool-example-executorservice/ Java thread pool manages the pool of worker threads. It contains a queue that keeps tasks waiting to get executed. We can use ThreadPoolExecutor to create thread pool in Java. Java thread pool manages the collection of Runnable threads. The worker threads execute Runnable threads from the queue. java.util.concurrent.Executors provide factory and support […]

Read more
Bridge Design Pattern in Java — step-by-step Programming tutorial on Progressive Robot

Bridge Design Pattern in Java

Today we will look into Bridge Design Pattern in java. When we have interface hierarchies in both interfaces as well as implementations, then bridge design pattern is used to decouple the interfaces from implementation and hiding the implementation details from the client programs. Bridge Design Pattern Just like [Adapter pattern](/community/tutorials/adapter-design-pattern-java "Adapter Design Pattern in Java […]

Read more
Composition vs Inheritance — step-by-step Programming tutorial on Progressive Robot

Composition vs Inheritance

Composition vs Inheritance is one of the frequently asked interview questions. You must have also heard to use Composition over Inheritance. Composition vs Inheritance Both composition and inheritance are [object-oriented programming concepts](/community/tutorials/oops-concepts-java-example). They are not tied up with any specific programming language such as Java. Before we compare composition over inheritance programmatically, let's have a […]

Read more
How To Use Operators in Java — step-by-step Programming tutorial on Progressive Robot

How To Use Operators in Java

An operator is one or more symbols in combination — from the well-known arithmetic operators such as minus and plus to the more advanced `instanceof`. When you apply operators on values or variables, you get a result from the operation. In this tutorial, you will use unary, binary, and ternary operators in a range of scenarios.

Read more
Java 11 Features — step-by-step Programming tutorial on Progressive Robot

Java 11 Features

URL: https://www.progressiverobot.com/java-11-features/ We haven't fully immersed ourselves in Java 10 yet, and Java 11 is here. Java 11 is important for more than just a few reasons. Oracle has revamped its support model and come up with a release train that'll bring rapid updates, about every 6 months. They've changed the licensing and support model […]

Read more
CHAT