KEMBAR78
Basic javaprogramming(session1) | PPT
Instructor: รัฐภูมิ   เถือนถนอม
                           ่
  Email: ratapoom@orjix.com




                             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 Machin
About the Java Technology
        The Java Programming Language

             • Write once, run anywhere




Java VM, the same application is capable of running on multip
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/CodeConvTOC.doc.htm
Software Development Knowledge

               Programming and Technologies




Software Analysis and Design   Software Development Process
      (Object-oriented)              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
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

Basic javaprogramming(session1)

  • 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 JavaTechnology 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 JavaTechnology The Java Programming Language • Write once, run anywhere Java VM, the same application is capable of running on multip
  • 4.
    About the JavaTechnology 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” forMicrosoft 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 ProgrammingInterface • 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 JavaProgramming • 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
  • 9.
    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
  • 10.
    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

Editor's Notes

  • #3 Insert a map of your country.
  • #4 Insert a map of your country.
  • #5 Insert a map of your country.
  • #6 Insert a map of your country.
  • #7 Insert a map of your country.
  • #8 Insert a map of your country.
  • #9 Insert a map of your country.
  • #10 Insert a map of your country.