Principles of Object-Oriented Software Development The language Java.

Slides:



Advertisements
Similar presentations
wwwcsif.cs.ucdavis.edu/~jacksoni
Advertisements

Remote Method Invocation in Java Bennie Lewis EEL 6897.
Client Side Programming Using Java Applet Outcomes: You will be expected to know: – Java Applets and HTML file; –bytecode and platform independent programs;
CS 4800 By Brandon Andrews.  Specifications  Goals  Applications  Design Steps  Testing.
George Blank University Lecturer. CS 602 Java and the Web Object Oriented Software Development Using Java Chapter 4.
Introduction to Java Kiyeol Ryu Java Programming Language.
OOP & JAVA. HelloWorld.java /** * The HelloWorld class is an application that * displays "Hello World!" to the standard output. */ public class HelloWorld.
Principles of Object-Oriented Software Development The language Eiffel.
Nelson Baloian Universidad de Chile. Goals of intensive lecture To learn: –What is JAVA ? –What is JAVA good for ? –What is JAVA bad for ? –Which programming.
Introduction to Java CS 331. Introduction Present the syntax of Java Introduce the Java API Demonstrate how to build –stand-alone Java programs –Java.
Java CourseWinter 2009/10. Introduction Object oriented, imperative programming language. Developed: Inspired by C++ programming language.
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.
Getting Started What is Java? A programming language –Fully buzzword-compliant: A simple, object oriented, distributed, interpreted, robust, secure,
Copyright © 2003 ProsoftTraining. All rights reserved. Sun Certified Java Programmer Exam Preparation Guide.
Java Software Solutions Lewis and Loftus Chapter 2 1 Copyright 1997 by John Lewis and William Loftus. All rights reserved. Software Concepts -- Introduction.
1 CSC 551: Web Programming Spring 2004 Java Overview  Design goals & features  platform independence, portable, secure, simple, object-oriented, … 
Introduction to Java Programming. Contents 1. Java, etc. 2. Java's Advantages 3. Java's Disadvantages 4. Types of Java Code 5. Java Bytecodes 6. Steps.
Programming in Java; Instructor:Moorthy Introduction, Objects, Classes, Libraries1 Programming in Java Introduction.
EE2E1. JAVA Programming Introduction Dr. Mike Spann
Lecturer PEN PHIROM Tel : Web site: Lecturer PEN PHIROM Tel :
Advanced Java New York University School of Continuing and Professional Studies.
©2007 · Georges Merx and Ronald J. NormanSlide 1 Chapter 3 The Structure and Syntax of Java.
COS 240 Object-Oriented Languages The Anatomy of a Java Program AUBG, Spring 2014 Svetla Boytcheva.
1 Module Objective & Outline Module Objective: After completing this Module, you will be able to, appreciate java as a programming language, write java.
Algorithm Programming Bar-Ilan University תשס"ח by Moshe Fresko.
1 Computer Systems -- Introduction  Chapter 1 focuses on:  the structure of a Java application  basic program elements  preparing and executing a program.
9/21/99www.cs.vt.edu/wwtut/1 User Interface Programming In Java Part 1 – Introduction Marc Abrams Virginia Tech CS Dept courses.cs.vt.edu/wwwtut/
CIS 644 Aug. 25, 1999 tour of Java. First … about the media lectures… we are experimenting with the media format please give feedback.
1 The Sun’s Java Certification and its Possible Role in the Joint Teaching Material Nataša Ibrajter Faculty of Science Department of Mathematics and Informatics.
CS 11 java track: lecture 1 Administrivia need a CS cluster account cgi-bin/sysadmin/account_request.cgi need to know UNIX
POS 406 Java Technology And Beginning Java Code
Introduction to java Prepared By:-Pragnesh Patel Lect. In Computer Dept. NSIT,Jetalpur 1.
Netprog: Java Intro1 Crash Course in Java. Netprog: Java Intro2 Why Java? Network Programming in Java is very different than in C/C++ –much more language.
Applied Computing Technology Laboratory QuickStart C# Learning to Program in C# Amy Roberge & John Linehan November 7, 2005.
C# Versus Java Author: Eaddy, Marc Source: Software Tools for the Professional Programmer. Dr. Dobb's Journal. Feb2001, Vol. 26 Issue 2, p74 Hong Lu CS699A.
Summary We have barely scratched the surface, both in terms of Java as well as OO.
1 Introduction to Java. 2 What is Java? A programming language. A platform –A virtual machine (JVM) definition. –Runtime environments in diverse hardware.
CSC 205 – Java Programming II Applet. Types of Java Programs Applets Applications Console applications Graphics applications Applications are stand-alone.
C# EMILEE KING. HISTORY OF C# In the late 1990’s Microsoft recognized the need to be able to develop applications that can run on multiple operating system.
National Taiwan University Department of Computer Science and Information Engineering National Taiwan University Department of Computer Science and Information.
CSE S. Tanimoto Java Introduction 1 Java A Programming Language for Web-based Computing with Graphics.
CSE S. Tanimoto Java Introduction 1 Java A Programming Language for Web-based Computing with Graphics.
Core Java Introduction Byju Veedu Ness Technologies httpdownload.oracle.com/javase/tutorial/getStarted/intro/definition.html.
Java -- A very Hot Object- Oriented Language Instructors: Fu-Chiung Cheng ( 鄭福炯 ) Associate Professor Computer Science & Engineering Tatung Institute of.
Principles of Object-Oriented Software Development The language C++
April 20, 1998CS102-02Lecture 4-1 A Method to the Madness CS Lecture 4-1 Java's Work Horses.
Java Computer Industry Lab. 1 Programming Java Java Basics Incheon Paik.
OOP Basics Classes & Methods (c) IDMS/SQL News
ITP 109 Week 2 Trina Gregory Introduction to Java.
Features of JAVA PLATFORM INDEPENDENT LANGUAGE JAVA RUNTIME ENVIRONMENT (JRE) JAVA VIRTUAL MACHINE (JVM) JAVA APP BYTE CODE JAVA RUNTIME ENVIRONMENT.
JAVA TRAINING IN NOIDA. JAVA Java is a general-purpose computer programming language that is concurrent, class-based, object-oriented and specifically.
CSE S. Tanimoto Java Introduction 1 Java A Programming Language for Web-based Computing.
 It is a pure oops language and a high level language.  It was developed at sun microsystems by James Gosling.
Sung-Dong Kim, Dept. of Computer Engineering, Hansung University Java - Introduction.
Applications Active Web Documents Active Web Documents.
A Programming Language for Web-based Computing with Graphics
Internet and Java Foundations, Programming and Practice
What is Java? A programming language Fully buzzword-compliant:
CS360 Windows Programming
null, true, and false are also reserved.
Introduction to Java Programming
Units with – James tedder
Units with – James tedder
A Programming Language for
CSC 551: Web Programming Spring 2004
(Computer fundamental Lab)
CSC 551: Web Programming Spring 2004
Chap 1. Getting Started Objectives
A Programming Language for
Presentation transcript:

Principles of Object-Oriented Software Development The language Java

Introduction Terminology Expressions Control Objects Inheritance Techniques Summary

Java -- the dial-tone of the Internet 1995 Introduction at WWW with AWT x with modified event handling 1998 version 1.2 (beta) with Swing Design principles -- safety a modern programming language,C++ syntax, no pointers virtual machine (runs on many platforms) libraries: threads, networking, AWT downloadable classes, support for applets extensions and APIs: Beans, Swing, MEDIA, 3D See: and

Keywords: new, finalize, extends, implements, synchronized Java overview Language features: no pointers -- references only simplify life garbage collection -- no programmers' intervention constructors -- to create and initialize single inheritance -- for refinement interfaces -- abstract classes synchronized -- to prevent concurrent invocation private, protected, public -- for access protection

Type expressions basic types -- int, char, float,... Array -- int ar[SIZE] String -- String[] args class -- user-defined

Expressions operators -- +, -,.., <, <=,.., ==, ! =,.., &&, || indexing -- o[ e ] access -- o.m(...) in/decrement -- o++, o-- conditional -- b?e1:e2 Assignment var = expression modifying -- +=. -=,...

Control conditional -- if (b) S1; else S2; selection -- switch(n) { case n1: S1; break;... default:... } iteration -- while (b) S looping -- for( int i = 1; i <= MAX; i++) S jumps -- return, break, continue Java -- control

Hello World -- Java (1) public class HelloWorld { public static void main(String[] args) { System.out.println("Hello World"); } };

Hello World - interface public interface World { public void hello(); }; Hello World - class public class HelloWorld implements World { public void hello() { System.out.println("Hello World"); } }; Java -- objects (2)

Hello World -- Java (2) import java.awt.Graphics; public class HelloWorld extends java.applet.Applet { public void init() { resize(150,50); } public void paint(Graphics g) { g.drawString("Hello, World!", 50, 25); } }; Java -- inheritance

Java -- techniques applets -- extend your browser servlets -- extend your server networking -- urls, sockets RMI -- remote method invocation reflection -- meta-information beans -- component technology JNI -- writing native methods javadoc -- online class documentation

The language Java design principles -- safety terminology -- object, interface syntax -- like C++ objects -- abstract data types, interfaces inheritance -- single inheritance techniques -- dynamic casts, reflection, APIs