MongoDB has vast support for arrays but syntax seems to be complicated at first glance. Performing array operations using MongoDB Java driver abstractions is a bit trickier.Continue reading “MongoDB array $push tutorial for Java”
@ThreadSafe class not found compilation error occurs after updating your org.apache.httpcomponents:httpcore dependency version to 4.4.11 or above.
This httpcore version comes with:
Class org.apache.http.annotation.Immutable removed
Class org.apache.http.annotation.NotThreadSafe removed
Class org.apache.http.annotation.ThreadSafe removed
There is no need to tell about importance of JVM debugging some feature at development, test or sometimes even at production environment.
The Java Debug Wire Protocol (JDWP) and java agent library included into JDK provides the ability to debug java applications.
Continue reading “Java: local and remote JVM debugging — JDK 8, 9 and later”
java.lang.UnsupportedClassVersionError: Test : Unsupported major.minor version 52.0 and similar exceptions occur when the JDK version, more specifically javac version, the code is compiled with is newer then JVM used for running it.
Continue reading “How to fix Unsupported major.minor version 52.0 in Java”