January 2014
Intermediate to advanced
736 pages
70h 43m
English
A Java application is a computer program that executes when you use the java command to launch the Java Virtual Machine (JVM). First we consider a simple application that displays a line of text. Figure A.1 shows the program followed by a box that displays its output.
1 // Fig. A.1: Welcome1.java 2 // Text-printing program. 3 4 public class Welcome1 5 { 6 // main method begins execution of Java application 7 public static void main( String[] args ) 8 { 9 System.out.println( "Welcome to Java Programming!" );10 } // end method main11 } // end class Welcome1
Welcome to Java Programming!
Fig. A.1 | Text-printing program. ...
Read now
Unlock full access