1. Instructor: รัฐภูมิ เถือนถนอม
่
Email: ratapoom@orjix.com
JAVA Programming
“When you are willing to make sacrifices for a
great cause, you will never be alone.”
2. About the Java Technology
The Java Programming Language
• Java technology is both a programming
language and a platform
• High-level language
• Simple
• Object oriented
• Distributed
• Multithreaded
• Portable
• Robust
• High performance
Bytecodes — the machine language of the Java Virtual Machin
3. About the Java Technology
The Java Programming Language
• Write once, run anywhere
Java VM, the same application is capable of running on multip
4. About the Java Technology
The Java Platform
• A platform is the hardware or software
environment in which a program runs
• The Java platform has two components
• The Java Virtual Machine
• The Java Application Programming Interface (API)
• A large collection of ready-made software
components
• Grouped into libraries of related classes and
interfaces; these libraries are known as packages
5. “Hello World” for Microsoft Windows
• Checklist
• The Java SE Development Kit (JDK6)
• A text editor (Notepad)
• Eclipse (Integrated Development Environment)
/**
* The HelloWorldApp class implements an application that
* simply prints "Hello World!" to standard output.
*/
class HelloWorldApp {
public static void main(String[] args) {
System.out.println("Hello World!"); // Display the string.
}
}
6. Java APIs
Application Programming Interface
• Java Platform, Standard Edition (Java SE)
• lets you develop and deploy Java applications on
desktops and servers
• Java Platform, Enterprise Edition (Java EE)
• the industry standard for implementing enterprise-
class service-oriented architecture (SOA) and next-
generation web applications
• Java Platform, Micro Edition (Java ME)
• a robust, flexible environment for applications
running on mobile and other embedded devices
7. Code Conventions
for Java Programming
• Filenames, file organization, indentation,
comments, declarations, statements, white
space, naming conventions, programming
practices
• 80% of the lifetime cost of a piece of software
goes to maintenance.
• Hardly any software is maintained for its whole
life by the original author.
• Code conventions improve the readability of the
software, allowing engineers to understand new
code more quickly and thoroughly.
• http://
java.sun.com/docs/codeconv/html/CodeConvTOC.doc.htm
8. Software Development Knowledge
Programming and Technologies
Software Analysis and Design Software Development Process
(Object-oriented) and Management