I'm starting Java, and was reading the "Hello World!" for Microsoft Windows guide from Oracle. In the guide, it tells you to use javac to compile into a .class, then run with
java -cp . HelloWorldApp
When I tried running it, I didn't run the proper file and instead accidentally ran
java helloworldapp.java
After I noticed that, I tried the original way and they both printed
Hello World!
This got me thinking, is there any difference to running it as a compiled .class vs the original source code .java?