If you run that exact code in JDK 1.5.0 or later, it will print
VL =1.4142135623730951
In earlier versions of
Java it won't compile.
So there's some difference between the code you're showing us and the code you actually ran -- try putting just this code into an appropriate main() and running it; then try to figure out how your actual code is different.