Instructor: รัฐภูมิ เถื่อนถนอม Email: [email protected] JAVA Programming “When you are willing to make sacrifices for a great cause, you will never be alone.”

Download Report

Transcript Instructor: รัฐภูมิ เถื่อนถนอม Email: [email protected] JAVA Programming “When you are willing to make sacrifices for a great cause, you will never be alone.”

Instructor: รัฐภูมิ เถื่อนถนอม Email: [email protected]

JAVA Programming

“When you are willing to make sacrifices for a great cause, you will never be alone.”

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 Machine

About the Java Technology

The Java Programming Language

• Write once, run anywhere Through the Java VM, the same application is capable of running on multiple platforms.

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

“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. } }

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

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/Code ConvTOC.doc.html

Software Development Knowledge

Programming and Technologies Software Analysis and Design (Object-oriented) Software Development Process and Management

References

• http://java.sun.com/docs/books/tutorial/essentia l/index.html

• http://java.sun.com/ • http://www.eclipse.org/ • http://java.sun.com/docs/codeconv/html/Code ConvTOC.doc.html