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

Slides:



Advertisements
Similar presentations
Transparency No. 1 Java Collection API : Built-in Data Structures for Java.
Advertisements

INTERFACES IN JAVA 1.Java Does not support Multiple Inheritance directly. Multiple inheritance can be achieved in java by the use of interfaces. 2.We need.
George Blank University Lecturer. CS 602 Java and the Web Object Oriented Software Development Using Java Chapter 4.
Principles of Object-Oriented Software Development The language Java.
Java Collections. Lecture Objectives To understand the concepts of Java collections To be able to implement Java programs based on Collections.
Created by Ron Beglieter (based on the Java Tutorial) 1 What is Java? Java technology is both a programming language and a platform; Programming Language.
Java Review Nelson Padua-Perez Chau-Wen Tseng Department of Computer Science University of Maryland, College Park.
Java Data Types  Everything is an Object  Except Primitive Data Types  For efficiency  Platform independent  Portable  “slow”  Objects are often.
Lecture 1: Overview of Java. What is java? Developed by Sun Microsystems (James Gosling) A general-purpose object-oriented language Based on C/C++ Designed.
Developing User Interfaces (DUI) Chris North cs3724: HCI.
Copyright © 2003 ProsoftTraining. All rights reserved. Sun Certified Java Programmer Exam Preparation Guide.
Java Collections Framework A presentation by Eric Fabricant.
Java Software Solutions Lewis and Loftus Chapter 2 1 Copyright 1997 by John Lewis and William Loftus. All rights reserved. Software Concepts -- Introduction.
Io package as Java’s basic I/O system continue’d.
CSE 331 Software Design & Implementation Hal Perkins Autumn 2012 Java Classes, Interfaces, and Types 1.
Java and C++, The Difference An introduction Unit - 00.
LESSON 2 CREATING A JAVA APPLICATION JAVA PROGRAMMING Compiled By: Edwin O. Okech [Tutor, Amoud University]
CS-434: Object-Oriented Programming Using Java Week 2
Cs3180 (Prasad)L8Packages1 Packages Organizing large programs => From monolithic programs to partitioning class name space Access control of names => Enforcing.
Intro to Java 2 By Geb Thomas Based on the Java TutorialJava Tutorial.
CS 584 Lecture 18 l Assignment » Glenda assignment extended to the Java RMI Deadline » No Java RMI Assignment l Test » Friday, Saturday, Monday.
Java Packages and Libraries M Taimoor Khan
JAVA COLLECTIONS LIBRARY School of Engineering and Computer Science, Victoria University of Wellington COMP T2, Lecture 2 Marcus Frean.
Introduction to Java Programming. History F James Gosling and Sun Microsystems F Oak F Java, May 20, 1995, Sun World F HotJava –The first Java-enabled.
1 Module Objective & Outline Module Objective: After completing this Module, you will be able to, appreciate java as a programming language, write java.
Chapter 1: Introducing JAVA. 2 Introduction Why JAVA Applets and Server Side Programming Very rich GUI libraries Portability (machine independence) A.
GENERIC COLLECTIONS. Type-Wrapper Classes  Each primitive type has a corresponding type- wrapper class (in package java.lang).  These classes are called.
POS 406 Java Technology And Beginning Java Code
CS 3131 Introduction to Programming in Java Rich Maclin Computer Science Department.
University of Houston-Clear Lake Proprietary© 1997 Summary of Chapter 3 A class is a collection of data and methods that operate on that data. An object.
15440 Distributed Systems Recitation 1 Objected-Oriented Java Programming.
National Taiwan University Department of Computer Science and Information Engineering National Taiwan University Department of Computer Science and Information.
Basic Java Seminar 2/2 Novemberr 5, 1997 SPARCS Nam Sedong Seminars on 4th SPARCS Exhibition - The second one.
Parts of JAVA 1www.gowreeswar.com. Features of JAVA 2www.gowreeswar.com.
Lecture 20 April 13, Review for Exam All Exercises and Sample Code from Lectures Object Based Programming Object Oriented Programming String and.
JAVA Programming “When you are willing to make sacrifices for a great cause, you will never be alone.” Instructor: รัฐภูมิ เถื่อนถนอม
16-August-2002cse Libraries © 2002 University of Washington1 Class Libraries CSE 142, Summer 2002 Computer Programming 1
CS 4244: Internet Programming Network Programming in Java 1.0.
Core Java Introduction Byju Veedu Ness Technologies httpdownload.oracle.com/javase/tutorial/getStarted/intro/definition.html.
CS884 (Prasad)java11Extn1 Java 1.1 Extensions Nested classes static public/protected/private.
Java and C++ Transitioning. A simple example public class HelloWorldApp { public static void main(String[] args) { //Display the string. System.out.println("Hello.
Interfaces and Inner Classes
More Java: Static and Final, Abstract Class and Interface, Exceptions, Collections Framework 1 CS300.
Chapter 11: Advanced Inheritance Concepts. Objectives Create and use abstract classes Use dynamic method binding Create arrays of subclass objects Use.
1 Chapter 6 Programming with Objects and Classes F OO Programming Concepts F Creating Objects and Object Reference Variables –Differences between primitive.
1 Java Server Pages A Java Server Page is a file consisting of HTML or XML markup into which special tags and code blocks are inserted When the page is.
Packages. The main feature of OOP is its ability to support the reuse of code: –Extending the classes –Extending interfaces The features in basic form.
April 20, 1998CS102-02Lecture 4-1 A Method to the Madness CS Lecture 4-1 Java's Work Horses.
SourceAnatomy1 Java Source Anatomy Barb Ericson Georgia Institute of Technology July 2008.
Java Computer Industry Lab. 1 Programming Java Java Basics Incheon Paik.
Know Your Java. Java is special Java source code Byte code/ native code Object code on windows Object code on Dos Object code on Lynux.
3-1 Java's Collection Framework Another use of polymorphism and interfaces Rick Mercer.
Coming up Implementation vs. Interface The Truth about variables Comparing strings HashMaps.
JAVA ACCESS MODIFIERS. Access Modifiers Access modifiers control which classes may use a feature. A classes features are: - The class itself - Its member.
Object Based Programming Chapter 8. 2 Contrast ____________________ Languages –Action oriented –Concentrate on writing ________________ –Data supports.
Sadegh Aliakbary Sharif University of Technology Fall 2010.
Objects and Classes. F OO Programming Concepts F Creating Objects and Object Reference Variables –Differences between primitive data type and object type.
Sixth Lecture ArrayList Abstract Class and Interface
Inheritance-Basics.
Software Development Java Collections
University of Central Florida COP 3330 Object Oriented Programming
Packages Written part of final exam Alex Rudniy
Interface.
The Building Blocks Classes: Java class library, over 1,800 classes:
1.4 ทบทวน JAVA OO Programming Concepts Declaring and Creating Objects
Chapter 6 Objects and Classes
Chap 1. Getting Started Objectives
Chap 4. Programming Fundamentals
Interfaces,Packages and Threads
Presentation transcript:

CIS 644 Aug. 25, 1999 tour of Java

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

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

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

Software architecture: applications applets servlets beans

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

Import class extend implements { } c_modifiers: final abstract public

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

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

Interface extends package synchronized try catch ( )

JavaTM Platform 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

Systems/Info/JDK1.2/index.html

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

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

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

End