Archives mensuelles : juillet 2017

Java 8 Method references or how to shorten lambdas that invoke just one method

There are 3 categories of lambda expression that we could convert to method references. All of these consist of a single method invocation. 1) Invoking an instance method on the first argument of the lambda 2) Invoking a static method on … Continuer la lecture

Publié dans java, java 8, java8, lambda | Laisser un commentaire

Java 8 Lambda expressions or how to write a better quality code

Lambda that relies mainly on the Java 8 functional interface concept has two faces :– it is really necessary to use streams that were also introduced in Java 8– beyond this use with streams, it is also a excellent language … Continuer la lecture

Publié dans anonymous class, java, java 8, java8, lambda | Laisser un commentaire

Java Generics

Java generics present many specificities. Here these I frequently rely on and that I consider as an unavoidable requirement to understand and work with generics.   I will illustrate these points by  endeavoring to stay as general as possible about the … Continuer la lecture

Publié dans Non classé | Laisser un commentaire

Tips and tools to analyse JVM

How to know the memory allocated to the JVM by default (XMS and XMX) ? It depends on the Java version. On JVM 8 : Xms = 1/64 of the physical memory on the machine. Xmx = 1/4 of the … Continuer la lecture

Publié dans Non classé | Laisser un commentaire