22 Mar

AtomicInteger

The package java.concurrent.atomic contains many useful classes to perform atomic operations. An operation is atomic when you can safely perform the operation in parallel on multiple threads without using the synchronized keyword or locks as shown in the previous article.

More
22 Mar

Synchronized

In the previous article we've learned how to execute code in parallel via executor services. When writing such multi-threaded code you have to pay particular attention when accessing shared mutable variables concurrently from multiple threads. Let's just say we want to increment an integer which is accessible simultaneously from multiple threads.

More
22 Mar

The Concurrency API was first introduced with the release of Java 5 and then progressively enhanced with every new Java release. The majority of concepts shown in this article also work in older versions of Java. However my code samples focus on Java 8 and make heavy use of lambda expressions and other new features.

More
27 Jan

If your Linux service is not running?

Our task is service checking and restart that service if it's not running.

More
23 Jan

Functional Programming in Java 8 with Functions

In general terms, functional programming is a programming paradigm, and it’s about programming with functions. What functional programming may be opposed to is the imperative programming paradigm. In imperative programming style, programs are composed from elements that “do” something. “Doing” something generally implies an initial state, a transition, and an end state. This is sometimes called state mutation. Traditional imperative-style programs are often described as a series of mutations, separated with condition testing.

More
22 Jan

Double colon operator ( :: ) in Java 8

Double colon operator ( :: ) in Java 8 is really useful operator which may help you to reduce some code.

More
22 Jan

Interesting question: Can (a==1 && a==2 && a==3) ever evaluate to true? In Java / in JavaScript?

More
03 Dec

Bad software developer

There are a lot of characteristic of bad developers, but we will stop on the most bad situation:

More
03 Dec

Who is a good software developer?

Technical Interview process is really complicated. Some company give tests, ask a lot of technical details, ask to write code on white board. But the really good developer may be not selected but this way.

More