What is Effectively Final variable of Java 8

Java 8 introduced a new term : effectively final variables. A variable which is not declared as final but whose value is never changed after initialization is effectively final. 12345for (int i = 0; i < 10; i++) { new Thread(() -> { System.out.println("i = " + i); // Does not compile! }).start(); } The above code does not […]

Continue Reading

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

History of Java (JDK) Versions

Java SE 10 (AKA Java 18.3) Java 10 will use the new versioning convention set out by Oracle[297] this will see the version numbers following a YY.M format. So far the versions announced using this format are 18.3 non-LTS in March 2018 and 18.9 LTS in September 2018[298]. There is speculation of introducing objects without identity (value […]

Continue Reading