Sachin Handiekar

Recent Posts


Copyright © 2019 Sachin Handiekar
May, 2019 3

JVMTI – Get System Properties

In this post we will see how we can use the JVMTI GetSystemProperties to get a list of system properties. library.cpp #include "jvmti.h" #include JNIEXPORT jint JNICALL Agent_OnLoad(JavaVM *jvm, char *options, void *reserved) { std::cout GetEnv((void **) &jvmti, JVMTI_VERSION_1_2); if (result != JNI_OK) { std::cerr [...]

Sachin HandiekarSachin Handiekar

Java 8 :: Comparator Example

A code example showing the use of Comparator in Java 8 using Comparator.comparing method. public class Student { private String name; private String subject; private double grade; public Student(String name, String subject, double grade) { = name; this.subject = subject; this.grade = grade; } public String getName() { return [...]

Sachin HandiekarSachin Handiekar