Java 8 has introduced a method Parameter.getName() to get the name of a parameter by using reflection.
Before using this feature, we need to turn on this feature in Java compiler.
To turn on this feature, just run javac with –parameters argument.
To verify the availability of this feature, we can use Parameter. isNamePresent() method.Read the full book at www.amazon.com