J ava Syntax
  
 Introduction

Java is more than just another syntax for a software development professional to learn. Java was designed from the beginning to be strictly object-oriented, platform independent (totally unambiguous in the byte-code produced by the compiler), network aware, robust, multi-threaded, high performance, secure, and so on. This means than anyone wishing to learn Java also needs to understand the environment in which Java operates, understand the object-oriented concepts which Java supports and enforces, and comprehend many other aspects beyond simple syntax.

Your Ad Here

 
 Syntax for a standalone application in Java:

class <classname>
{
public static void main(String args[])
{
statements;
覧覧覧覧;
覧覧覧覧;
}
}
 Steps to run the above application:

  1. Type the program in the DOS editor or notepad. Save the file with a .java extension.
  2. The file name should be the same as the class, which has the main method.
  3. To compile the program, using javac compiler, type the following on the command line:
    Syntax: javac <filename.java>
    Example: javac abc.java
  4. After compilation, run the program using the Java interpreter.
    Syntax: java <filaname> (without the .java extension)
    Example: java abc
  5. The program output will be displayed on the command line.
 Click for Next Quick Reference
Next



Your Ad Here


 About Author
Author Name           : Mr. R.Franklin Bourgia Singh
Country                    : INDIA
Working In               : Aryans Infoway (P) Ltd.
Email                        : admin@completetutorials.co.cc
Author Home Page : http://www.completetutorials.googlepages.com
 Reach me!
   My Web URL : http://www.completetutorials.googlepages.com
   If you like this article and/or code, make a small donation to my account,
Till we meet next time BYE     

  Send your feed-back and query to admin@completetutorials.co.cc
ゥ2008 Bourgia