in documentation i read, that:
A variables name can be any legal identifier — an **unlimited-length** sequence of Unicode letters and digits
so
The local variable names are not stored as such. They tend to be removed as part of the compiler optimization and replaced with numbers (see aload_
Try to compile with javac -g
or javac -g:vars
, it should leave more information, which you'll be able to check with javap
.
This answer should have interesting details on this topic.
Since your example code doesn't actually do anything anyway, it's likely to be optimized into an empty method.