MethodHandle – What is it all about?

What you can do with MethodHandles is curry methods, change the types of parameters and change their order. Method Handles can handle both methods and fields. Another trick which MethodHandles do is use primitive direct (rather than via wrappers) MethodHandles can be faster than using reflection as there is more direct support in the JVM … Read more

How is String concatenation implemented in Java 9?

The “old” way output a bunch of StringBuilder-oriented operations. Consider this program: public class Example { public static void main(String[] args) { String result = args[0] + “-” + args[1] + “-” + args[2]; System.out.println(result); } } If we compile that with JDK 8 or earlier and then use javap -c Example to see the … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)