You are on page 1of 14

|  

 

‡ Module 1 ± 2: - Introduction to Java
- Variables & Operators
‡ Module 3 - 4: - Decision-Making & Iterations
- Introduction to Classes
‡ Module 5 - 6: - Arrays/Strings/Other string classes
- Packages, Access Modifiers
‡ Module 7 - 8: - Inheritance and Interfaces
- More on Classes
‡ Module 9: - Exceptions
- Overview
-
  
 
 
Module 1 -
Introduction to Java
Introduction to Java
‡ ½
 


‡ 
  
! 

‡ |  "#

‡ $  

‡ %
&
 |"
!
!

‡ '  
 

-
  
 
 

Class and Object

‡ Describe real-world entities as objects

‡ Describe a software object

‡ Describe and explain the structure of a class

‡ Compare classes and objects

-
  
 
 (
Class & Objects
‡ Object is the presentation of real world entities.
‡ The two most important elements of object in real
world are characteristics and actions
  
  
  
½ 
  *

+ ,
- . 
- / 
 0


.  &
- 
  0 

‡ Class is a template defines the outline of state and


behavior for all object belonging to that class
‡ All instances of the class, called objects, will have
common state and behavior
-
  
 
 )
Class && Object: Compare

-
  
 
 1
1
[etting started with Java

‡ Identify the evolution stages of Java

‡ State the components of the Java platform

‡ List the features of Java as programming

language

-
  
 
 2
The evolution stages of Java
1. Embedded Systems
(1991 ± 1994)
2. A client ± side Wonder
(1995 ± 1997)

3. Moved into the


Middle ± tier
(1997 ± to present)

4. Future:
may gain more success
-
  
 
 3
3
Java platform

*java.exe)

-
  
 
 

Java ± Programming language
‡ Object ± oriented: The elements are present can only
be accessed through classes and objects.
‡ Platform ± independent: The ability of a program to
run on any machine regardless of underlying platform
‡ Robust: Java requires all data to be declared explicitly
‡ Secure: Provides a secure environment and several
layers of security controls
‡ Distributed: To develop application portable across
multiply platform.
‡ Multi-threaded: Java provides for multi-threading to
perform many task simultaneously
-
  
 
 4
Introduction JDK
‡  "#  
± *
+
± * 


+
‡ ½ 5 
"#
± 6
± ½ 
‡ $   
 
± $
± ½
 



-
  
 
 
 etBeans IDE Overview

‡ |
5


5 5%
&
 | 


"


  
*|"+

‡ |
5



 5%
&
 |"

‡ - 
 
 

   
%
&
 |"

-
  
 
 
Summary - 

‡ ½
 

‡ |  
‡ |  "#
‡ $  
‡ %
&
 |"
‡ '  
 

-
  
 
 
Ë
!7
‡ +8ӑҥ9 :;ө 

‡ +-9$7, 

‡ +ӯ.  

‡ (+8ӑưӟ9 :;ө 

‡ )+# Ӄ 7 ; <8ӑ9 :;ө 


-
  
 
 (