What is AtomicInteger in Java and it’s working

The AtomicInteger class  added in Java 5 in java.util.concurrent.atomic package. The AtomicInteger class provide way to perform atomic operation on int values. Its supports lock-free and thread-safe programming on single variables.The AtomicInteger class is wrapper class for int values which allows operations on it Atomically. Atomic operations are performed as a single unit of task without interference of other […]

Continue Reading

Java Concurrency and multi-threading

Java Concurrency is very important part of java programming. Its take lot of effort and experience to understanding how concurrency work in java as it requires understanding of Operating System,CPU and programming concepts. As per @JosePaumard Concurrency is “the art of doing several things at the same time”. Concurrency is all about improving code  by […]

Continue Reading

Tips For Writing Bug-Free Code

Though Its not gangrened to write 100% bug free code, but we can process some below given tips to reduce number of bug in our code. Writing Bug Free code is depends on various factors, its take lot of knowledge of best practices and some good tool to check quality of code. Based on article […]

Continue Reading

Java Multi-threading based interview Question and Answers

When ever you go for any interview there are of course some question based on java multi threading, You can find some of the important question related to threading and java.util.concurrent package . What is working of ConcurrentHashMap, What kind of  locking mechanism used in ConcurrentHashMap ? What is BlockingQueue and What is use of […]

Continue Reading