. PDFile: Free Download PDF: Java Programming Guide - Quick Reference ' 1999, Pinnacle Software ...

javac abc.java. 4. After compilation, run the program using the Java ... Example: java abc. 5. The program output will be displayed on the command line. ...
Resource: www.digilife.be







Short Desciption:
javac abc.java. 4. After compilation, run the program using the Java ... Example: java abc. 5. The program output will be displayed on the command line. ...

Content Inside: Java Programming Guide - Quick Reference Syntax for a standalone application in Java: class { 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 Example: javac abc.java 4. After compilation, run the program using the Java interpreter. Syntax: java (without the .java extension) Example: java abc 5. The program output will be displayed on the command line. Java Programming Guide - Quick Reference Java Comments: Delimiters // /* ---------- */ /** ----------*/ Use Used for commenting a single line Used for commenting a block of code Used for commenting a block

::download::

Custom Search

MENU