Characteristics of Java

how java works

Comments

There are 3 differenet kind of comments.

main

In more detail :

System.out.println(String s)

class

Refer to my notes on classes and object oriented langauge for more detail.

Identifies

Identifies are used to name class, methods, variables.
Not all characters can form an indentify. In below are the basic rules
  1. An identify is a squence of letters , digits, dollar sign $, underscore _.
  2. It cannot begin with a digit.
  3. It cannot be any reserved keywords like , public, class, void ....
  4. Actually it can be in other language (other than English) if you use unicode.
  5. They are case senstive . i.e. myName is different from MyName.

Primitive type

int

float and double

long

char

boolean

Arithemetic

Flow control

Array

String

class and inheritance

You have to know all the material in my handout. This includes

Import

Graphics

JFrame

Layout

JPanel

JLabel, JButton, JTextField

Interface

ActionListener

ActionEvent

e.getSource()

e.getActionCommand()

Exception

IO

Input

Output

More :

User input from DOS

File

Split

Object

Math

Vector/LinkedList