A code example showing the use of Comparator in Java 8 using Comparator.comparing method. public class Student { private String name; private...
In this tutorial we will see how we can use of() and copyOf() factory methods in Java 9 to create immutable collections. Project Setup JDK...
In this post we will see how we can use the JVMTI GetSystemProperties to get a list of system properties. ```cpp{numberLines: true} #include...
In jBoss Portal 6.1 / jBoss EAP 6, the access logs can be enabled by adding element inside the virtual-server (web subsystem) in...
A simple JVMTI agent in Windows using MinGW/Cygwin. #include <jvmti.h> #include <stdio.h> JNIEXPORT jint JNICALL Agent_OnLoad(JavaVM *jvm, char...
We might require to ignore a jUnit test based on a certain condition. jUnit just comes up with a @Ignore annotation which can be used to ignore the...