Topics on the presentation

Slides:



Advertisements
Similar presentations
JAVA Programming Environment © Juhani Välimäki 2003.
Advertisements

Introduction To Java Objectives For Today â Introduction To Java â The Java Platform & The (JVM) Java Virtual Machine â Core Java (API) Application Programming.
Liang, Introduction to Java Programming, Sixth Edition, (c) 2005 Pearson Education, Inc. All rights reserved Chapter 1 Introduction to.
Introduction to Java The objectives of this chapter are: To describe the key aspects of Java To describe the Java software development kit (SDK) To explain.
Introduction to Java Programming, 4E
Lab 1 Instructor: Jolanta Soltis.
Session-02. Objective In this session you will learn : What is Class Loader ? What is Byte Code Verifier? JIT & JAVA API Features of Java Java Environment.
01 Introduction to Java Technology. 2 Contents History of Java What is Java? Java Platforms Java Virtual Machine (JVM) Java Development Kit (JDK) Benefits.
Sadegh Aliakbary Sharif University of Technology Fall 2011.
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.
BASIC JAVA PROGRAMMING TUTORIAL. History  James Gosling and Sun Microsystems  Oak  Java, May 20, 1995, Sun World  Hot Java –The first Java-enabled.
Programming mobile devices Part II Programming Symbian devices with Symbian C++
 2000 Deitel & Associates, Inc. All rights reserved. Chapter 24 – Web Servers (PWS, IIS, Apache, Jigsaw) Outline 24.1Introduction 24.2Microsoft Personal.
S.W. Ma/CIM/LWL41211/2 Prog. IIA Page 1 HKIVE (Lee Wai Lee Campus) Department of CIM Course : Year 2 Module : Programming IIA Textbook : Introduction.
Java Analysis Studio Tony Johnson Stanford Linear Accelerator Center CHEP 97 - April 1997.
CSCI 224 Introduction to Java Programming. Course Objectives  Learn the Java programming language: Syntax, Idioms Patterns, Styles  Become comfortable.
Advanced Java New York University School of Continuing and Professional Studies.
Sadegh Aliakbary Sharif University of Technology Spring 2011.
Oracle8 JDBC Drivers Section 2. Common Features of Oracle JDBC Drivers The server-side and client-side Oracle JDBC drivers provide the same basic functionality.
Programming Fundamentals 2: Background/ F II Objectives – –give a non-technical overview of Java Semester 2, Background.
An intro to programming. The purpose of writing a program is to solve a problem or take advantage of an opportunity Consists of multiple steps:  Understanding.
1.  At the end of this slide, student can:  Explore tools, features, properties and interface of the Textpad.  Creating a new project.  Open and run.
Sadegh Aliakbary Sharif University of Technology Fall 2012.
The Basics of Javadoc Presented By: Wes Toland. Outline  Overview  Background  Environment  Features Javadoc Comment Format Javadoc Program HTML API.
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.
Liang, Introduction to Java Programming, Sixth Edition, (c) 2007 Pearson Education, Inc. All rights reserved Chapter 1 Introduction to.
Chapter 1: Introduction to Programs, and Java 1. Objectives To review programs (§ ). To understand the relationship between Java and the World Wide.
Introduction to Java Programming with Forte Y. Daniel Liang.
Introduction To JAVA By Ihtesham Ul Haq. Course Objectives Upon completing the course, you will understand Upon completing the course, you will understand.
RMI remote method invocation. Traditional network programming The client program sends data to the server in some intermediary format and the server has.
National Taiwan University Department of Computer Science and Information Engineering National Taiwan University Department of Computer Science and Information.
4-Nov-15 Air Force Institute of Technology Electrical and Computer Engineering Object-Oriented Programming Design Topic 1: The Java Environment Maj Joel.
CS Software Studio Java Lab 1 Meng-Ting Wang PLLAB, Computer Science Department, National Tsing-Hua University.
Liang, Introduction to Java Programming, Sixth Edition, (c) 2007 Pearson Education, Inc. All rights reserved Chapter 1 Introduction to.
23-October-2002cse JavaIntro © 2002 University of Washington1 Intro to Java CSE 413, Autumn 2002 Programming Languages
JAVA Programming “When you are willing to make sacrifices for a great cause, you will never be alone.” Instructor: รัฐภูมิ เถื่อนถนอม
Application Architecture Using Java Hong Li. Introduction Developed by a team led by James Gosling at Sun Microsystem. Originally called Oak, designed.
Liang, Introduction to Java Programming, Seventh Edition, (c) 2009 Pearson Education, Inc. All rights reserved Chapter 1 Introduction to.
Introduction to Java Programming. 2 Chapter 1 Introduction to Java and Forte F What Is Java? F Getting Started With Java Programming –Create, Compile.
introductory lecture on java programming
3/5/2002e-business and Information Systems1 Java Java Java Virtual Machine (JVM) Java Application Program Interface (API) HW Kernel API Application Programs.
ITP 109 Week 2 Trina Gregory Introduction to Java.
20-753: Fundamentals of Web Programming Copyright © 1999, Carnegie Mellon. All Rights Reserved. 1 Lecture 15: Java Basics Fundamentals of Web Programming.
1 Chapter 2: Operating-System Structures Services Interface provided to users & programmers –System calls (programmer access) –User level access to system.
Introduction to JAVA Programming
Introduction to Java Programming, 4E Y. Daniel Liang.
SESSION 1 Introduction in Java. Objectives Introduce classes and objects Starting with Java Introduce JDK Writing a simple Java program Using comments.
 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.
Introduction to Algorithm. What is Algorithm? an algorithm is any well-defined computational procedure that takes some value, or set of values, as input.
Introduction CMSC 202 Fall Instructors Mr. Ryan Bergeron – Lecture Section 01 Tues/Thu 1:00 – 2:15 am, Sondheim 111 – Lecture Section 04 Tues/Thu.
CS-140 Dick Steflik Lecture 3. Java C++ Interpreted optimized for the internet Runs on virtual ized machine Derived from C++ Good object model Widely.
Object Oriented Programming in
Current Generation Hypervisor Type 1 Type 2.
Internet and Java Foundations, Programming and Practice
What is RMI? Remote Method Invocation
CMPE419 Mobile Application Development
Chapter 1 Introduction to Computers, Programs, and Java
Getting Started ARCS Lab..
Introduction to Java.
Advanced Programming Fall 2017.
Chapter 1 Introduction to Computers, Programs, and Java
(Computer fundamental Lab)
Java History, Editions, Version Features
F II 1. Background Objectives
Introducing Java.
Chap 1. Getting Started Objectives
Review of Previous Lesson
Outcome of the Lecture Upon completion of this lecture you will be able to understand Fundamentals and Characteristics of Java Language Basic Terminology.
Presentation transcript:

Topics on the presentation JAVA is VM, development tools, language & packages Networking Embedded system & JAVA License and cost Author: Qi Wu

Applications on generic OS (Operating System) Application 1 (ANSI C) Application 2 (C++) Application 3 (Pascal) Application X (VB) API (Application Programming Interface) OS kernel Software device drivers OS Hardware interfaces JAVA is VM, development tools, language & packages

Features of the architecture API is much more dependent of an OS and/or selected hardware platform. Applications are written in different programming languages and connected with certain API. Performance/benchmark of an application is also affected by the OS and hardware platform. What will happen if the OS or hardware platform changed ? JAVA is VM, development tools, language & packages

Applications on generic OS (Operating System) Application 1 (ANSI C) Application 2 (C++) Application 3 (Pascal) Application X (VB) To be updated API (Application Programming Interface) OS kernel Software device drivers OS Hardware interfaces JAVA is VM, development tools, language & packages

JAVA is VM, development tools, language & packages Portability Selection of a OS or hardware platform is often requirement from big customer. Update of existing applications needs additional efforts and time. Maintain of applications becomes problem. JAVA is VM, development tools, language & packages

JAVA VM (Virtual Machine) Application 1 (JAVA) Application 2 (JAVA) Application 3 (JAVA) Application X (JAVA) JAVA byte code JAVA VM Packages API (Application Programming Interface) OS kernel Software device drivers Hardware interfaces JAVA specifications VM producer’s job JAVA is VM, development tools, language & packages

Features of the architecture VM is upward standard according to JAVA specification and downward specific to an OS Business strategy drives producer of an OS to release JAVA VM in some case. Some communities are also working hard on JAVA VM for different OS like Windows 95/98/NT/2000, Window CE, Linux, QNX... Application is written once and run everywhere (theoretically). More and more applications are written in JAVA and treated to be independent of certain OS. Performance/benchmark of an application is also affected by the OS, hardware platform and JAVA VM. Packages are collection of specified or often-used classes. Standard JAVA specification defines rich classes for diverse applications. JAVA is VM, development tools, language & packages

java.net.* and java.awt.* are important packages Application 1 (JAVA) Application 2 (JAVA) Application 3 (JAVA) Application X (JAVA) JAVA byte code JAVA VM Packages (java.net.* java.awt.* ...) API TCP/IP GUI OS kernel Software device drivers Hardware interfaces JAVA specifications VM producer’s job JAVA is VM, development tools, language & packages

JDK (Java Development Kit) JAVA is VM, development tools, language & packages

Sub-directories of JAVA 1.3 (Java 2) based on Sun’s Standard Edition JDK 1.3 root directory bin include demo lib jre javac.exe --- compiler jdb.exe --- debugger java.exe --- Java VM appletviewer.exe .... src.jar --- packages .... JAVA is VM, development tools, language & packages

JAVA is VM, development tools, language & packages Example 1: Welcome.java public class Welcome { public static void main(String[ ] args) { String greeting[ ] = new String[3]; greeting[0] = “Welcome to Hannover”; greeting[1] = “by Qi Wu”; greeting[2] = “on April 08, 2001”; for (int i = 0; i < greeting.length; ++i) System.out.println(greeting[i]); } JAVA is VM, development tools, language & packages

JAVA is VM, development tools, language & packages Example 1: Welcome.java C:\JAVATEST>javac Welcome.java C:\JAVATEST>java Welcome.class ... Welcome to Hannover by Qi Wu on April 08, 2001 C:\JAVATEST>_ JAVA is VM, development tools, language & packages

Features of Java language The concept of class dominates all Java Java is OOP Garbage collection Java Interface Easy to design, code and test Most data exchanges are based on reference ... JAVA is VM, development tools, language & packages

JAVA is VM, development tools, language & packages Example 2: Welcome.java public class NewWelcome { public String getLine(String strArray[ ]) { return strArray[ 0] + “ “+ strArray[ 1] + “ “+ strArray[ 2]; } public class Welcome public Welcome { NewWelcome myNewWelcomeObject = new NewWelcome(); System.out.println( myNewWelcomeObject.getLine(greeting) ); public static void main(String[ ] args) { String greeting[ ] = new String[3]; greeting[0] = “Welcome to Hannover”; greeting[1] = “by Qi Wu”; greeting[2] = “on April 08, 2001”; Welcome myWelcomeObject = new Welcome(); JAVA is VM, development tools, language & packages

JAVA is VM, development tools, language & packages What is class? A class is usually described as the template or blueprint from which the object is actually made. JAVA is VM, development tools, language & packages

Networking buzzwords Networking Internet EJB Intranet http Servlet socket Applet Client/server ... TCP/IP Networking

Generic & basic networking layer structure Application Protocol (http, ...) TCP/UDP/IP Abstract layer Physical link Hardware interfaces Networking

Java networking solution Application Protocol (http, ...) JAVA VM Application Protocol (http, ...) Packages (java.net.* ...) TCP/UDP/IP JAVA specifications Networking

Client/server concept (two or more machines) Pooling & response thread TCP/UDP/IP Application Protocol (http, ...) JAVA VM Request thread TCP/UDP/IP Application Protocol (http, ...) JAVA VM Server Networking

Client/server concept (two o more machines) Pooling & response thread TCP/UDP/IP Application Protocol (http, ...) JAVA VM Request thread Application Protocol (http, ...) TCP/UDP/IP Server Networking

Client/server concept (one machine) Pooling & response thread Request thread TCP/UDP/IP Application Protocol (http, ...) JAVA VM Networking

Client/server concept (one machine) Pooling & response thread Request thread JAVA VM Application Protocol (http, ...) TCP/UDP/IP Networking