Getter method - cheating the spirit of "Law of Demeter"

 Every time I look at the Getter methods, I wonder, a simple getter method but its impact is very high on the code. Is it a friend for developers or enemies who are acting as friends? We can discuss various topics on Getter but here I...

Java:: What is invokeDynamic

Java:: What is invokeDynamic
In my previous article, I discussed --How JVM determines which methods to call at runtime?Also, we learned that In bytecode level, java compiler uses 4 special opcodes for method invoking invokestatic,invokeinterface,invokevirtual,invokespecial. Now, ...

How does method dispatch happen in Java?

How does method dispatch happen in Java?
 Have you ever wondered when you call a method like a list.add("Shamik"), How the actual method invoke in runtime? If you want to discover the How part then you are in the right place else you can easily skip the article as it is not related...

Java8: Oogways final advise on Optional

Java8: Oogways final advise on Optional
Master Oogways enlighten us about Optional in his previous two sessions, and Now he set the stage for the final advise on Optional and believe me that is the most searchable questions on the internet about Optional, also many peoples mailed in OpenJDK...

Java8: Oogways more advice on Optional.

Java8: Oogways more advice on Optional.
Oogway's previous talk clears the confusions about Why Optional is added on java8? But PO is a Dragon warrior he is the finest Java warrior so he wants more, He wants to know when is the right time to use Optional. What are the best practices so he...