.java
and should have the exact same name as the public class name.
Yadda.java)
type:
javac Yadda.java
.class file.
Yadda.class) type
java Yadda
main method has the following signature
public static void main(String[] args)
//
/* and end
with */
ClassName.member
ClassName variableName = new ClassName(arguments);
objectName.member