Saturday, January 23, 2010

Java Operators

.         []           ()
++        --           !            ~
*          /           %
+         -
<<        >>           >>>         <<<
<         >            <=           >=
==        !=
&         |
^
&&
||
?:
=

Java Data Types

Primitive Data Types
  • boolean (true, false)
  • char (8 bits)
  • byte (8 bits)
  • short (16 bits)
  • int (32 bits)
  • long (64 bits)
  • float (32 bits)
  • double (64 bits)
Reference Variables vs. Primitive Variables
  • Primitive variables are variables with primitive data types. They store data in the actual memory location of the variable is.
  • Reference variables are variables that stores the address in the memory location. It points to another memory location of the actual data is.

Tuesday, January 19, 2010

My First Java Program

public class Hello {
    /**
     * My first Java program
     */
    public static void main(String[] args) {
        //prints the string "Hello world!" on screen
        System.out.println("Hello world!");
    }
}


Error Types
  • Syntax errors
  • Run-time errors
Java Comments
  • C++ Style Comments
  • C-Style Comments
  • Special Javadoc Comments

About Java

What is Java Technology?
  • A programming language
  • A development environment
  • An application environment
  • A deployment environment
Some Features of Java
  • The Java Virtual Machine (JVM)
  • Garbage Collection
  • Code Security

Sunday, January 17, 2010

My new year's resolution

My new year's resolution is learning Java and using Java in my next project.

Go for it!
Java, JavaScript, HTML, XHTML, AJAX, CSS, etc.