This will be yet another light tutorial on the basics of Java code. The first line of code when creating a new project is:

Code:
package firstProject;
Notice the end of the line, there's a semi colon. That ends a line of code. When starting a method though, you don't do that. (Might get to methods in another tut) Where the compiled sources go, are in packages. A source file, in what you're coding in. It then goes through the compiler, to be turned into computer code, in which it can be executed, that is the .jar file. The class file is for you to call your methods and field variables from. And the rest is the name of the package. For now, I'll say, that methods are just blocks of code that do something. But moving on!! The next line of code says:

Code:
public class prjClass;
Public meaning it can be seen outside of the class. Class, the file it is, and a class is a file that has a list of methods, that can be called as needed. And prjClass is the name of the class. Note the semi colon at the end. Again ending that line of code. Don't forget it, or you get some errors. Then there's this:

Code:
public static void main (String[] args) {


          }
public has been stated before, static means that you don't have to create a new object from it, void means that it doesn't return a value. main is the name of this method. This is the main method!! As it's name suggest. The compiler won't compile unless it finds a main method. Of coarse, you could initiate other methods in this method, to not make your code so linear. Within those parenthesis, are command line arguments. Can't get into that, if this is basic :P And that's all for now!!

At least when you start a new project in net beans, you wont be like "D:" Lol. Hope this helped at all.

Source : My brain. Heh :P