cis 644 aug. 25, 1999 tour of java. first … about the media lectures… we are experimenting with...
TRANSCRIPT
![Page 1: CIS 644 Aug. 25, 1999 tour of Java. First … about the media lectures… we are experimenting with the media format please give feedback](https://reader035.vdocuments.us/reader035/viewer/2022072014/56649eb25503460f94bb8770/html5/thumbnails/1.jpg)
CIS 644
Aug. 25, 1999
tour of Java
![Page 2: CIS 644 Aug. 25, 1999 tour of Java. First … about the media lectures… we are experimenting with the media format please give feedback](https://reader035.vdocuments.us/reader035/viewer/2022072014/56649eb25503460f94bb8770/html5/thumbnails/2.jpg)
First … about the media lectures…
we are experimenting with the media format
please give feedback
![Page 3: CIS 644 Aug. 25, 1999 tour of Java. First … about the media lectures… we are experimenting with the media format please give feedback](https://reader035.vdocuments.us/reader035/viewer/2022072014/56649eb25503460f94bb8770/html5/thumbnails/3.jpg)
... not (much) programming in Java.
We will write and compile Java declarations
(framework) for some sample problems.
TogetherJ design tool generates Java frameworks.
![Page 4: CIS 644 Aug. 25, 1999 tour of Java. First … about the media lectures… we are experimenting with the media format please give feedback](https://reader035.vdocuments.us/reader035/viewer/2022072014/56649eb25503460f94bb8770/html5/thumbnails/4.jpg)
Classes
objects
methods
class / instance variables
constructors
observers (“get”)
generators (“set”)
mutators
inheritance (single)
signature
interface
![Page 5: CIS 644 Aug. 25, 1999 tour of Java. First … about the media lectures… we are experimenting with the media format please give feedback](https://reader035.vdocuments.us/reader035/viewer/2022072014/56649eb25503460f94bb8770/html5/thumbnails/5.jpg)
Software architecture:
applications applets servlets
beans
![Page 6: CIS 644 Aug. 25, 1999 tour of Java. First … about the media lectures… we are experimenting with the media format please give feedback](https://reader035.vdocuments.us/reader035/viewer/2022072014/56649eb25503460f94bb8770/html5/thumbnails/6.jpg)
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. } }
![Page 7: CIS 644 Aug. 25, 1999 tour of Java. First … about the media lectures… we are experimenting with the media format please give feedback](https://reader035.vdocuments.us/reader035/viewer/2022072014/56649eb25503460f94bb8770/html5/thumbnails/7.jpg)
Import <packages>
<c_modifier> class <Name> extend <parent>
implements <interface>
{
<variables>
<methods>
}
c_modifiers: final
abstract
public
![Page 8: CIS 644 Aug. 25, 1999 tour of Java. First … about the media lectures… we are experimenting with the media format please give feedback](https://reader035.vdocuments.us/reader035/viewer/2022072014/56649eb25503460f94bb8770/html5/thumbnails/8.jpg)
Method / variable modifiers
abstract
static
native
final
synchronized
public
private
protected
![Page 9: CIS 644 Aug. 25, 1999 tour of Java. First … about the media lectures… we are experimenting with the media format please give feedback](https://reader035.vdocuments.us/reader035/viewer/2022072014/56649eb25503460f94bb8770/html5/thumbnails/9.jpg)
Objects:
1. declaration: 2. instantiation: new 3. initialization: 4*. Use… reference (observers) , update (mutators)
n1. Finalizen2. garbage collection
![Page 10: CIS 644 Aug. 25, 1999 tour of Java. First … about the media lectures… we are experimenting with the media format please give feedback](https://reader035.vdocuments.us/reader035/viewer/2022072014/56649eb25503460f94bb8770/html5/thumbnails/10.jpg)
Interface <Name> extends <name>
<block>
package <Name>
synchronized <block>
try <block> catch ( <exception> ) <block>
![Page 11: CIS 644 Aug. 25, 1999 tour of Java. First … about the media lectures… we are experimenting with the media format please give feedback](https://reader035.vdocuments.us/reader035/viewer/2022072014/56649eb25503460f94bb8770/html5/thumbnails/11.jpg)
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
![Page 12: CIS 644 Aug. 25, 1999 tour of Java. First … about the media lectures… we are experimenting with the media format please give feedback](https://reader035.vdocuments.us/reader035/viewer/2022072014/56649eb25503460f94bb8770/html5/thumbnails/12.jpg)
http://www.lne.com/Web/Java1.1/
http://www.cis.ksu.edu/ Systems/Info/JDK1.2/index.html
![Page 13: CIS 644 Aug. 25, 1999 tour of Java. First … about the media lectures… we are experimenting with the media format please give feedback](https://reader035.vdocuments.us/reader035/viewer/2022072014/56649eb25503460f94bb8770/html5/thumbnails/13.jpg)
Collections Implementations: Hash Table, Resizable Array, Balanced Tree, Linked List Interfaces: Set … as HashSet, TreeSet List … as ArrayList, LinkedList
Map … as HashMap, TreeMap
![Page 14: CIS 644 Aug. 25, 1999 tour of Java. First … about the media lectures… we are experimenting with the media format please give feedback](https://reader035.vdocuments.us/reader035/viewer/2022072014/56649eb25503460f94bb8770/html5/thumbnails/14.jpg)
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
![Page 15: CIS 644 Aug. 25, 1999 tour of Java. First … about the media lectures… we are experimenting with the media format please give feedback](https://reader035.vdocuments.us/reader035/viewer/2022072014/56649eb25503460f94bb8770/html5/thumbnails/15.jpg)
Storage and deployment: *.java …. Source file *.class …. Compiled (byte codes)
*.jar ………. Archive (zipped)
Beans … reusable component, with standard bean interface, …. COM wrapper classes
![Page 16: CIS 644 Aug. 25, 1999 tour of Java. First … about the media lectures… we are experimenting with the media format please give feedback](https://reader035.vdocuments.us/reader035/viewer/2022072014/56649eb25503460f94bb8770/html5/thumbnails/16.jpg)
End