• 14 February

    Difference between Serializable and Externalizable in Java

    In this tutorial,  we are going to see differences between Serializable and Externalizable interface in Java. Java Serialization Tutorial: Serialization in java Java Serialization interview questions and answers serialversionuid in java serialization externalizable in java Transient keyword in java Difference between Serializable and Externalizable in Java Before understanding difference, let me provide a short note on Serializable […]

  • 21 January

    Energycasino ingyenes pörgetések: teljes útmutató és bónuszmatematika

    Bármilyen online kaszinóba történÅ‘ befizetés elÅ‘tt szánj öt percet ennek az ellenÅ‘rzÅ‘listának az elolvasására – lefedi azokat a lépéseket, amelyeket a legtöbb játékos kihagy. Felkészülés GyÅ‘zÅ‘dj meg róla, hogy rendelkezel érvényes, a KYC ellenÅ‘rzéshez szükséges dokumentumokkal (személyi igazolvány, lakcímkártya, fizetési mód igazolása). Válassz egy erÅ‘s, egyedi jelszót – lehetÅ‘leg jelszókezelÅ‘vel generálva. Nézd meg a bónusz […]

  • 20 January

    How to check if number is power of two

    In this tutorial, we will see how to check if number is power of two. There are many approaches to check if number is power of two or not. Approach 1: It is very easy and straight forward approach. Run a while loop which checks for condition if n is even number (n%2==0). If n is […]

  • 16 January

    BC.Game casino: steg-for-steg guide for norske spillere

    Før du setter inn penger pÃ¥ et online casino, ta fem minutter til Ã¥ lese denne sjekklisten – den dekker stegene de fleste spillere hopper over. Denne guiden gÃ¥r gjennom alt fra forberedelser til uttak, med praktiske eksempler og beregninger. Getting Ready Sjekk at casinoet har gyldig lisens. BC Game casino er lisensiert fra Curacao, […]

  • Java ExecutorService example using Callable and Future
    09 January

    Java ExecutorService example using Callable and Future

    Callable interface represents a thread that can return a value. It is very much similar to Runnable interface except that it can return a value. Callable interface can be used to compute status or results that can be returned to invoking thread. For example: Let’s say you want to perform factorial and square of some […]

  • 08 January

    Guida pratica a Leovegas: bonus, app e scommesse spiegate

    This is not a generic casino review — this is a practical operator manual for Leovegas scommesse players. Cosa ti serve prima di iniziare Un indirizzo email valido e un numero di telefono. Un documento d’identità (carta d’identità, passaporto o patente) per la verifica KYC. Un metodo di pagamento accettato: carte di credito/debito, portafogli elettronici […]

  • 06 January

    Object level locking vs Class level locking in java

    Synchronization is ability to restrict access to shared resource to only one thread. When two or more threads need access to shared resource, there has to be some mechanism such that shared resource will be used by only one thread. The process by which we can achieve it is called Synchronization. Why do you need […]

  • Java Exchanger example
    06 January

    Java Exchanger example

    Exchanger class is introduced with java 1.5 with other classes such ConcurrentHashMap, CountDownLatch, Semaphores. Exchanger class is used to exchange object between two threads. Exchanger simply waits until two separate threads calls exchange method, when it happens, it exchanges data supplied by threads.Two threads can pair and swap objects between them. Exchanger class may be useful […]

  • 05 January

    Java newCachedThreadPool Example

    1. Introduction Java’s Executors.newCachedThreadPool() factory method provides a thread pool that creates new threads as needed, but will reuse previously constructed threads when they are available. Our goal is to understand how to use this thread pool to execute asynchronous tasks efficiently. 2. What is newCachedThreadPool? The newCachedThreadPool method from the java.util.concurrent.Executors class is a […]