1 / 20

Introduction to Java

Java Programming Language. Introduction to Java. Kiyeol Ryu. Table of Contents. Brief History What is Java Java Applets and Applications Java Programming Environment. 1991 Green Project (Sun Micro Systems) Comsumer Electronics 1991 Oak language (Java) 1992 *7 - First Product

lok
Download Presentation

Introduction to Java

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Java Programming Language Introduction to Java Kiyeol Ryu

  2. Table of Contents • Brief History • What is Java • Java Applets and Applications • Java Programming Environment

  3. 1991 Green Project (Sun Micro Systems) Comsumer Electronics 1991 Oak language (Java) 1992 *7 - First Product 1993 CableTV Box - fail 1994 WWW에 적용 1994 HotJava Browser 1995 Sun World 95 1996 JDK 1.0.2 1997 JDK 1.1 1998 JDK 1.2 (J2SE SDK 1.2) 2000 J2SE SDK 1.3 2002 J2SE SDK 1.4 1989 WWW (CERN) concept 1993 Mosaic (NCSA) 1993 Netscape M. Adressen, J. Clark 1995 Netscape Licensed Java 1996 MicroSoft Licensed Java 1998 Motorola Licensed Java Brief History

  4. What is Java • simple • object-oriented • distributed • interpreted • robust • secure • architecture neutral • portable • high-performance • multithreaded • dynamic Ref: J. Gosling, et. al., The Java Language, A White Paper, Sun Microsystems, 1994

  5. Java is Simple • The syntax of Java is a cleaned-up version of the syntax for C++. • header files • pointer • unions • operator overloading • virtual base classes • typedef • stuct • explicit memory management • etc. Java C++ C

  6. Java is Object-Oriented • Models real world entities as objects • Abstracts out data as classes • Reuses classes through inheritance

  7. Java is Distributed • Extensive TCP/IP networking capabilities • Interactivities with protocols to retrieve information such as HTTP, FTP • Ease of accessing remote files

  8. Java is Interpreted • The java interpreter can directly execute instructions in its object code. • Java bytecode • Architecture-neutral

  9. Java is Robust • No pointer • Array bounds checking • Exception handling • Byte code verification

  10. Java is Secure • With robustness • Bytecode verifier • Class loader • Sandbox model • Digital signature

  11. Bytecode Verifier Java Source Class Loader network JIT compiler Interpreter Java Compiler Runtime Java Byte Code Java is Architecture Neutral Runtime Compile time hardware

  12. Java is Portable • Architecture independent • Ints are always Ints and are always 32-bits 2’s complemented integers. • User interfaces via an abstract window system so the windows can be implemented on UNIX, PC and Mac

  13. Java is Multithreaded • Many simultaneous activities in “one” program • Better interactive performance • Better real-time behavior

  14. Java is Dynamic. • Code can be added to a running program • useful in evolving environment • Reflection capability • to analyze objects in runtime

  15. Applying Java • Java Application • Stand-alone program • Java interpreter executes applications • Java Applet • Java code embedded in HTML documents • Java-enabled browser executes(interprets) applets • Java Servlet • Web component that generates dynamic content • Run by a web server • Java Server Page(JSP) • To develop dynamic web pages • a JSP page is an HTML page that contains java code • Run by a web server

  16. Java Application • Sample application class HelloWorldApp { public static void main (String args[]) { System.out.println (“Hello World!”); } }

  17. Java Program Java Compiler Java Classes (Bytecodes) Java Interpreter Results Compile and Execute • Java compiler generates Java bytecode • Java interpreter executes Java bytecode

  18. Java Applet • Sample HTML <html> <applet code=HelloWorld.class width=100 height=100 > </applet> </html> Web Browser HTML 1 2 • load HTML • load applet • run applet Applet (Java classes) Web Server

  19. Java Programming Environment • Java 2 Standard Edition(J2SE) SDK

  20. Advanced Java Technology • Java Beans • Java IDL • Jini technology • Java Message System(JMS) • Enterprise Java Beans(EJB) • Java Server Pages(JSP) • ...

More Related