Presentation is loading. Please wait.

Presentation is loading. Please wait.

CIS 644 Aug. 25, 1999 tour of Java. First … about the media lectures… we are experimenting with the media format please give feedback.

Similar presentations


Presentation on theme: "CIS 644 Aug. 25, 1999 tour of Java. First … about the media lectures… we are experimenting with the media format please give feedback."— Presentation transcript:

1 CIS 644 Aug. 25, 1999 tour of Java

2 First … about the media lectures… we are experimenting with the media format please give feedback

3 ... not (much) programming in Java. We will write and compile Java declarations (framework) for some sample problems. TogetherJ design tool generates Java frameworks.

4 Classes objects methods class / instance variables constructors observers (“get”) generators (“set”) mutators inheritance (single) signature interface

5 Software architecture: applications applets servlets beans

6 file named HelloWorldApp.java /** * The HelloWorldApp class implements an application that * simply displays "Hello World!" to the standard output. */ class HelloWorldApp { public static void main(String[ ] args) { System.out.println("Hello World!"); //out the string. }

7 Import class extend implements { } c_modifiers: final abstract public

8 Method / variable modifiers abstract static native final synchronized public private protected

9 Objects: 1. declaration: 2. instantiation: new 3. initialization: 4*. Use… reference (observers), update (mutators) n1. Finalize n2. garbage collection

10 Interface extends package synchronized try catch ( )

11 JavaTM Platform 1.1.6 Core API Specification package java.applet package java.awt package java.awt.event package java.awt.image package java.beans package java.io package java.lang package java.math package java.net package java.rmi package java.text package java.util package java.util.zip …. And more

12 http://www.lne.com/Web/Java1.1/ http://www.cis.ksu.edu/ Systems/Info/JDK1.2/index.html

13 Collections Implementations: Hash Table, Resizable Array, Balanced Tree, Linked List Interfaces: Set … as HashSet, TreeSet List … as ArrayList, LinkedList Map … as HashMap, TreeMap

14 Communication: parameters, return parameter event … isa parameter Listener classes and interfaces, methods as: public void mosePressed( MouseEvent e) adapter class exception …. implicit parameter Threads …. Runnable interface

15 Storage and deployment: *.java …. Source file *.class …. Compiled (byte codes) *.jar ………. Archive (zipped) Beans … reusable component, with standard bean interface, …. COM wrapper classes

16 End


Download ppt "CIS 644 Aug. 25, 1999 tour of Java. First … about the media lectures… we are experimenting with the media format please give feedback."

Similar presentations


Ads by Google