Quick Reminder: Java Programming Quickstart in Ubuntu 12.04
runtime-era.blogspot.com
runtime-era.blogspot.com
"An old Java convention is keeping the name of the file and it's class the same."
One correction, the Java compiler requires the filename to be the same as the public class present in the file. You will see a compile time error if this condition is not met.