Posts

Showing posts from July, 2011

Basic Java Class

Hi! Today I'm going to talk some thing about the basic java source file We know all programming languages has to compile before they execute to change the platform. Java source file can be write in notepad or any other IDEs like NetBeans and what ever the IDE or notepad we are using we have to follow some restrictions to make compile our code. In our source file the first part that is the top part of the source file must be the package declaration part which declare our source file to a particular place where some other source files also can be included. The second part will be the import statement part which tell the compiler some source file we have to attached from other packages to our package because we are using the source code of that particular package. The third thing i the class declaration where our favourite java class going to be declared. If we don't have the first part and second part we talked above. The class declaration will be the first part for example : cla...