Java - Tutorials

The Java Environment

Home Services Courses Tutorials Contact
Setting Up The Java Environment
Java Environment
Overveiw Of Java Programming
Java Data Types
Java Operators
Java Flow Control

Exam Objectives Covered


Java Is a Language


Java Is a Platform


Java Is Actually Multiple Platforms


Features of Java - Condensed


Java Is Standardized and Portable


Java Provides Some Safety for Developers


Java Development Cycle

  1. Write source file with any text editor
    • FirstExample.java
      • Your write the class definition (class) in here
      • NOTE: classes are named using CamelCase

  2. Compile it with javac
    • javac FirstExample.java
      • This will give error(s) or FirstExample.class

  3. Run it with java
    • java FirstExample
      • This launches the JVM and executes FirstExample.class

Java Development Kit (JDK)


JDK Illustrated

jdk_illustrated

Java Source Files

class HelloWorld {

}

main Method

class HelloWorld {

  public static void main(String[] args) {
    // code goes here
  }

}

Diagnosing Problems


Classpath


Classpath Rules

Exam Objectives Covered
Java Is a Language
Java Is a Platform
Java Is Actually Multiple Platforms
Features of Java - Condensed
Java Is Standardized and Portable
Java Provides Some Safety for Developers
Java Development Cycle
Java Development Kit (JDK)
JDK Illustrated
Java Source Files
main Method
Diagnosing Problems
Classpath
Classpath Rules