creating the program

Share:

creating the java program:



  • create the program using any text editor such as edit in DOS or notepad or wordpad etc.

  • and save it in the java directory

  • the general form for saving the created program








Filename.java


  •  this file is called source file


Example:

class sample//main class

{

public static void main(String args[])

{

--------------------

--------------------

}

}

Save as sample.java in java directory

No comments