I know that you can use reflection in Java to get the name of the class, methods, fields ... etc. at runtime. I was wondering if a method can determine its name while it is inside itself? In addition, I do not want to pass the method name as a String parameter.
for example
public void HelloMyNameIs() { String thisMethodNameIS =
If this is possible, I thought it would probably be due to the use of reflection, but perhaps it is not.
If anyone knows, he will be very grateful.
grebwerd
source share