module 1 - introduction (t1)
TRANSCRIPT
8/8/2019 Module 1 - Introduction (T1)
http://slidepdf.com/reader/full/module-1-introduction-t1 1/14
Introduction to the subject
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
Learn Java by Example - Module 1-2 1/13
8/8/2019 Module 1 - Introduction (T1)
http://slidepdf.com/reader/full/module-1-introduction-t1 2/14
Module 1 -
Introduction to Java
8/8/2019 Module 1 - Introduction (T1)
http://slidepdf.com/reader/full/module-1-introduction-t1 3/14
Learn Java by Example - Module 1-2 3/19
Introduction to Java
Classes and Objects
Getting started with Java
Introduction to JDK
Writing a Java program
NetBeans IDE Overwiew
Using comment in Java
3
8/8/2019 Module 1 - Introduction (T1)
http://slidepdf.com/reader/full/module-1-introduction-t1 4/14
Learn Java by Example - Module 1-2 4/13
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
8/8/2019 Module 1 - Introduction (T1)
http://slidepdf.com/reader/full/module-1-introduction-t1 5/14
Learn Java by Example - Module 1-2 5/13
Class & Objects
Object is the presentation of real world entities. The two most important elements of object in real
world are characteristics and actions
Class is a template defines the outline of state andbehavior for all object belonging to that class
All instances of the class, called objects, will havecommon state and behavior
Object (Real world) Software Object
Characteristics (properties) State Attributes Variables - Fields
Actions Behavior Method - Functions
Learn Java by Example - Module 1-2
8/8/2019 Module 1 - Introduction (T1)
http://slidepdf.com/reader/full/module-1-introduction-t1 6/14
Learn Java by Example - Module 1-2 6/13
Class && Object: Compare
6
8/8/2019 Module 1 - Introduction (T1)
http://slidepdf.com/reader/full/module-1-introduction-t1 7/14
Learn Java by Example - Module 1-2 7/13
Getting started with Java
Identify the evolution stages of Java
State the components of the Java platform
List the features of Java as programming
language
8/8/2019 Module 1 - Introduction (T1)
http://slidepdf.com/reader/full/module-1-introduction-t1 8/14
Learn Java by Example - Module 1-2 8/19
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 success8
8/8/2019 Module 1 - Introduction (T1)
http://slidepdf.com/reader/full/module-1-introduction-t1 9/14
Learn Java by Example - Module 1-2 9/19
Java platform
9
( java.exe)
8/8/2019 Module 1 - Introduction (T1)
http://slidepdf.com/reader/full/module-1-introduction-t1 10/14
Learn Java by Example - Module 1-2 10/13
Java ± Programming language
Object ± oriented: The elements are present can onlybe accessed through classes and objects.
Platform ± independent: The ability of a program torun 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 acrossmultiply platform.
Multi-threaded: Java provides for multi-threading toperform many task simultaneously
8/8/2019 Module 1 - Introduction (T1)
http://slidepdf.com/reader/full/module-1-introduction-t1 11/14
Learn Java by Example - Module 1-2 11/13
Introduction JDK
Explain JDK and its tools
± javac (Java compiler)
± java (Java interpreter)
Configure JDK
± Path
± Classpath
Writing a java simple program
± Writing
± Compile and execute
8/8/2019 Module 1 - Introduction (T1)
http://slidepdf.com/reader/full/module-1-introduction-t1 12/14
Learn Java by Example - Module 1-2 12/13
NetBeans IDE Overview
Identify the benefits of NetBeans Integrated
Development Environment (IDE)
Identify the elements of NetBeans IDE
List the steps to create a Java program using
NetBeans IDE
8/8/2019 Module 1 - Introduction (T1)
http://slidepdf.com/reader/full/module-1-introduction-t1 13/14
Learn Java by Example - Module 1-2 13/13
Summary - Module 1
Classes and Objects
Introduction to Java
Introduction to JDK
Writing a Java program
NetBeans IDE
Using comment in Java
8/8/2019 Module 1 - Introduction (T1)
http://slidepdf.com/reader/full/module-1-introduction-t1 14/14
Homework
1) c li và gõ ví d Module 1
2) Làm WorkShop Module 1
3) Gi Assignment -1 4) c trc và gõ ví d Module 2
5) Khuyn khích: c và gõ ví d Module 3
Learn Java by Example - Module 1-2 14/13