CHAPTER 2

Site hosted by Angelfire.com: Build your free website today!
I. Java Virtual Machine (JVM)
-Java compiles into byte code.
-Byte code is machine language for an iimaginary Java computer.
-JVM is an interpreter.
-JVM is more portable but slower.

II. User Interface
-GUI (Visual Basic), Terminal I/O (Quick Basic).

III. Class Structure Outline
-classname, classnames are capitalized, the java file must be saved as [the classname].java
public class HelloWorld
{
	public static void main (String [] args)
	{	
		System.out.println("Hello World");
	}	
}
[System.out - object], [the . after System.out is the method selector], [println - method], ["Hello World" - arguement], [; - all statements must end with a semicolon.]

Opening and Creating a Java Program
1. Open JCreator.
2. Add a new project.


Home