• 13 June

    Java Executor framework tutorial with example

    Java 5 has introduced new framework called Executor Framework for managing threads.We have already seen before how to create a thread. If you have noted, we need to create an object of thread class using new Thread(runnableObject), so we need to create thread object for each task.Imagine a situation where you have thousands of task […]

  • 12 June

    Guide pratique du bonus Stake : étapes, calculs et astuces

    Réussir votre premier retrait est le véritable test de toute plateforme iGaming — ce guide vous montre comment le réussir. Que vous soyez nouveau sur stake casino ou un joueur expérimenté, comprendre le fonctionnement des bonus et des mises est essentiel pour maximiser vos gains. Ce guide couvre l’inscription, le calcul des mises, les dépôts […]

  • Java interview programs
    10 June

    Java Interview Programs for Logic Building

    In this tutorial, we will see Java interview programs for logic building. These java programs will help students to crack Java interview. Here is the list of Top 10 Java interview programs for logic building. Question 1: Check if number is odd or even? Answer: It is a very basic question. You need to check […]

  • Java ExecutorCompletionService
    09 June

    Java ExecutorCompletionService

    In this post, we will see about Java ExecutorCompletionService example. ExecutorCompletionService class implements CompletionService. This class returns Future object in completion order. Why you may need to use ExecutorCompletionService: Let’s understand with the help of scenario: Let’s say you have 5 tasks, you submit it to the executors and you want to perform some operation as soon […]

  • 09 June

    How to find length/size of Arraylist in java

    In this tutorial, we will see how to find length/size of Arraylist in java. You can use ArrayList’size() method to calculate size of ArrayList. Let’s understand it with the help of Simple example. [crayon-6a2a350315323080928216/] When you run above program, you will get below output: Size of Country List is: 4 [India, China, Bhutan, Nepal] Size […]

  • 05 June

    Java newSingleThreadExecutor example

    In this tutorial, we will learn about Executor’s newSingleThreadExecutor factory method. In the last tutorial, I have shared an introduction to ThreadPoolExecutor. If you are not aware of concepts of ThreadPoolExecutor, you should go through that first. Executor’s newSingleThreadExecutor factory method : This method returns thread pool executor which executes one task at a time.If […]

  • 01 June

    Ocean Breeze Casino Sign-Up Guide: Quick Steps and Tips

    Setting up an account at an online casino is quick, but knowing exactly what to expect at each step saves time and frustration. This guide walks you through everything from prerequisites to claiming your first bonus at Ocean Breeze Casino. Prerequisites You must be at least 18 years old (or the legal gambling age in […]

  • 29 May

    Java ScheduledThreadPoolExecutor Example

    There are multiple ways to schedule a task in java. We have already Java timer to schedule a task but the problem with timers task is that you can execute one task at a time.So if the current task takes longer subsequent job will be delayed. In this scenario, you can use Java ScheduledThreadPoolExecutor.This class […]

  • Java FutureTask example
    28 May

    Java FutureTask example

    In this tutorial, we will see about Java FutureTask example. FutureTask class has been introduced in JDK 5 with Executor Framework. FutureTask class is the concrete implementation of the Future object and provides methods for start and cancel the task.It also provides method to see if the computation is done or not. We can query […]