Overview of Java Programming

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 Source Files


Java Language Elements


Classes


Packages


Identifiers


Identifiers


Java Keywords

Java Keywords

Java Naming Conventions


Comments

// single-line comment
/*
 this comment spans
 several lines
*/

Lab 3.1 - Declaring Comments


Whitespace


Whitespace Example

class WhitespaceExample {
public static void main(String[] args) {
  System.out.println("try to be neat");                 /*
but somehow can't */
System.out.
  println("good luck trying to maintain this ");  System.
out.
println("code");
}}
class WhitespaceExample {
  public static void main(String[] args) {
    System.out.println("try to be neat");
    /* but somehow can't */
    System.out.println("good luck trying to maintain this ");
    System.out.println("code");
  }
}
Exam Objectives Covered
Java Source Files
Java Language Elements
Classes
Packages
Identifiers
Java Keywords
Java Naming Conventions
Comments
Lab 3.1 - Declaring Comments
Whitespace
Whitespace Example