Sunday, August 9, 2009

Java


Now we can start coding with java. First of all we need a java compiler.  JDK is most uses compiler . JDK (JAVA Development Kit) have a power full compiler and a debugger so any one can find what worng on program is. Just buy it from Market.

Look this Program:

Program1:

class Program1

{

   public static void main(String args[])

   {

                System.out.println(“This is for displaying any variable or string”);

   }

}

It’s a very simple java program.

Here you will find all of your  needed information. Note Java is Object oriented Programming language It also a class based program every program start with class. Write down all code in any text editor(like notepad).

NOTE: Your java program Name must be name of your main class name. That’s mean look the program main class /*where main function*/ it’s class name is program1 so this program name is Program1.java. First letter of class name must be  alphabetic .

now look the picture here every thing will be explain.

 Keyword is special words which do some extra work. Those word Have some extra function and work. Your can use keyword for special purpose. Just mention That you can’t use keyword as statement, variable or any other use. "class” is a key word which explain a Class.



No comments:

Post a Comment