Outline. Introduction to Java. What Is Java? History. Java 2 Platform. Java 2 Platform Standard Edition. Introduction Java 2 Platform

Similar documents
Java Programming Language Mr.Rungrote Phonkam

History Introduction to Java Characteristics of Java Data types

CHAPTER 1. Introduction to JAVA Programming

Advanced Object-Oriented Programming Introduction to OOP and Java

Chapter 1 Introduction to Computers, Programs, and Java. What is a Computer? A Bit of History

Learning objectives. The Java Environment. Java timeline (cont d) Java timeline. Understand the basic features of Java

Distributed Multitiered Application

1. What is Jav a? simple

Introduction to Java. Lecture 1 COP 3252 Summer May 16, 2017

Introduction to JAVA Programming Language

2 Introduction to Java. Introduction to Programming 1 1

Eng. Mohammed Alokshiya

IQTIDAR ALI Lecturer IBMS Agriculture University Peshawar

Eng. Mohammed S. Abdualal

Networks Programming Engr. Abdul-Rahman Mahmood MS, PMP, MCP, QMR(ISO9001:2000)

CS335 Graphics and Multimedia

CS5015 Object-oriented Software Development. Lecture: Overview of Java Platform. A. O Riordan, 2010 Most recent revision, 2014 updated for Java 8

Chapter 1 Introduction to Computers, Programs, and Java

Chapter 1 Introduction to Computers, Programs, and Java

Designing a Distributed System

Chapter 1 Introduction to Computers, Programs, and Java

Chapter 1 Introduction to Computers, Programs, and Java

II. Compiling and launching from Command-Line, IDE A simple JAVA program

Lecture 1: Introduction to Java

Introduction to Java Programming CPIT 202. WEWwwbvxnvbxmnhsgfkdjfcn

Chapter 1 Introduction to Java

PLATFORM TECHNOLOGY UNIT-5

Component Based Software Engineering

Chapter 1 Introduction to Computers, Programs, and Java

Introduction. Enterprise Java Instructor: Please introduce yourself Name Experience in Java Enterprise Edition Goals you hope to achieve

Objectives. Chapter 1 Introduction to Computers, Programs, and Java. What is a Computer?

1. Introduction. Java. Fall 2009 Instructor: Dr. Masoud Yaghini

Introduction to Java Programming

Chapter 1 Introduction to Computers, Programs, and Java

Enterprise Java Unit 1-Chapter 2 Prof. Sujata Rizal Java EE 6 Architecture, Server and Containers

Chapter 1 Introduction to Computers, Programs, and Java

Programming. Syntax and Semantics

Chapter 1: Introduction to Computers, Programs, and Java

[Course Overview] After completing this module you are ready to: Develop Desktop applications, Networking & Multi-threaded programs in java.

Part I: Fundamentals of Programming

Java Language. Programs. Computer programs, known as software, are instructions to the computer. You tell a computer what to do through programs.


Agenda. Summary of Previous Session. Extreme Java G Session 3 - Main Theme Java Core Technologies (Part I)

Architecting Java solutions for CICS

25. DECUS Symposium THE Application Development Environment for OpenVMS

History of Enterprise Java

1Z Oracle. Java Platform Enterprise Edition 6 Enterprise JavaBeans Developer Certified Expert

Vision of J2EE. Why J2EE? Need for. J2EE Suite. J2EE Based Distributed Application Architecture Overview. Umair Javed 1

JAVA & J2EE UNIT -1 INTRODUCTION

Introduction to Java. Nihar Ranjan Roy.

From High Level to Machine Code. Compilation Overview. Computer Programs

What we need. Agenda. What s J2EE. Challenges of Enterprise Application Development

Chapter 6 Enterprise Java Beans

Chapter 2 FEATURES AND FACILITIES. SYS-ED/ Computer Education Techniques, Inc.

History of Java. Java was originally developed by Sun Microsystems star:ng in This language was ini:ally called Oak Renamed Java in 1995

Introduction to Computer Science I

Introduction. Overview of the Course on Java. Overview of Part 1 of the Course

Java Training For Six Weeks

Introduction To Web Architecture

Chapter 1: Introduction to Computers and Java

8/23/2014. Chapter Topics. Introduction. Java History. Why Program? Java Applications and Applets. Chapter 1: Introduction to Computers and Java

Goals. Java - An Introduction. Java is Compiled and Interpreted. Architecture Neutral & Portable. Compiled Languages. Introduction to Java

Course Content for Java J2EE

Lecture 1: Overview of Java

Notes of the course - Advanced Programming. Barbara Russo

GETTING STARTED. The longest journey begins with a single step. In this chapter, you will learn about: Compiling and Running a Java Program Page 2

Module 1: Introduction to Computers, Programs, and Java

COT 3530: Data Structures. Giri Narasimhan. ECS 389; Phone: x3748

Special Topics: Programming Languages

Chapter 1 Introduction to Computers, Programs, and Java

Index. Course Outline. Grading Policy. Lab Time Distribution. Important Instructions

Introduction. Introduction to OOP with Java. Lecture 01: Introduction to OOP with Java - AKF Sep AbuKhleiF -

Road Map. Introduction to Java Applets Review applets that ship with JDK Make our own simple applets

Java Applets. Last Time. Java Applets. Java Applets. First Java Applet. Java Applets. v We created our first Java application

Introduction to OOP with Java. Instructor: AbuKhleif, Mohammad Noor Sep 2017

Borland JBuilder 7 Product Certification. Study Guide

Introduction to Computers and Java

Lesson 01 Introduction

J2EE Development. Course Detail: Audience. Duration. Course Abstract. Course Objectives. Course Topics. Class Format.

Java WebStart, Applets & RMI

J2EE Interview Questions

TABLE OF CONTENTS...2 INTRODUCTION...3 WHAT IS JAVA?...3 EVOLUTION OF JAVA...3

Introduction to Java. Liang, Introduction to Java Programming, Ninth Edition, (c) 2013 Pearson Education, Inc. All rights reserved.

Exam Questions 1Z0-850

Borland Optimizeit Enterprise Suite 6

Introduction to Visual Basic and Visual C++ Introduction to Java. JDK Editions. Overview. Lesson 13. Overview

Core JAVA Training Syllabus FEE: RS. 8000/-

Enterprise JavaBeans (I) K.P. Chow University of Hong Kong

The team that wrote this redbook

Assoc. Prof. Dr. Marenglen Biba. (C) 2010 Pearson Education, Inc. All rights reserved.

SNS COLLEGE OF ENGINEERING, Coimbatore

COURSE DETAILS: CORE AND ADVANCE JAVA Core Java


PSD1B Advance Java Programming Unit : I-V. PSD1B- Advance Java Programming

SUN Enterprise Development with iplanet Application Server

02 B The Java Virtual Machine

Eclipse Tutorial. For Introduction to Java Programming By Y. Daniel Liang

Accurate study guides, High passing rate! Testhorse provides update free of charge in one year!

Assoc. Prof. Dr. Marenglen Biba. (C) 2010 Pearson Education, Inc. All rights reserved.

Getting Started With Java

Transcription:

Outline Introduction to Java Introduction Java 2 Platform CS 3300 Object-Oriented Concepts Introduction to Java 2 What Is Java? History Characteristics of Java History James Gosling at Sun Microsystems Previous called Oak in 1991 for consumer electronic applications Renamed to Java and redesigned for Internet applications in May 1995 HotJava The first Java-enabled Web browser CS 3300 Object-Oriented Concepts Introduction to Java 3 CS 3300 Object-Oriented Concepts Introduction to Java 4 Java 2 Platform Java 2 Platform Standard Java 2 Platform Enterprise Java 2 Platform Micro Java 2 Platform Standard For developing stand-alone applications JVM to execute Java programs Development tools -- compiler, debugger, profiler, and documentation generator Core APIs (Application Program Interfaces) -- core language support, utilities, input and output, networking, preferences collections, security, locale support, logging, Java beans, XML processing, and native interface GUI APIs -- AWT (Abstract Window Toolkit), Swing, 2- dimensional graphics, and sound support Integration APIS remote method invocation (RMI), database connectivity (JDBC), naming and directory services (JNDI) Deployment tools Java Web start and Java plug-in CS 3300 Object-Oriented Concepts Introduction to Java 5 CS 3300 Object-Oriented Concepts Introduction to Java 6 1

Java 2 Platform Enterprise For developing sever applications Java servlets and Java server pages (JSP) Enterprise Java beans (EJB) E-mail and messaging services Transaction management Java 2 Platform Standard CS 3300 Object-Oriented Concepts Introduction to Java 7 CS 3300 Object-Oriented Concepts Introduction to Java 8 Java 2 Platform Micro For developing small applications Connected Device Configuration (CDC) for high-end consumer electronic devices Web appliances Connected, Limited Device Configuration (CLCD) for low-end information devices -- PDAs, cellular phones CS 3300 Object-Oriented Concepts Introduction to Java 9 Characteristics of Java Java is simple Automatic memory allocation and garbage collection Java is object-oriented Java is distributed Java is interpreted JVM code -- bytecode Java is robust or reliable Java has a runtime exception-handling feature Java is secure Java is architecture-neutral (platform independent) Java programs can be run on any platform CS 3300 Object-Oriented Concepts Introduction to Java 10 Characteristics of Java Java is portable Java programs can run on any platform without having to be recompiled Java s performance Java is multithreaded Java program is capable of performing several tasks simultaneously within a program Java is dynamic Methods and properties can be added in a class without affecting their clients CS 3300 Object-Oriented Concepts Introduction to Java 11 JDK Versions JDK 1.02 (1995) JDK 1.1 (1996) Java 2 SDK v 1.2 (1998) Java 2 SDK v 1.3 (2000) Java 2 SDK v 1.4 (2001) CS 3300 Object-Oriented Concepts Introduction to Java 12 2

Java IDE Tools JBuilder Microsoft Visual J++ (no longer exist) Symantec Café (no longer exist) Forte or Sun One Studio by Sun MicroSystems IBM Visual Age for Java Java Run-Time Architecture Platform independent Security efficiency CS 3300 Object-Oriented Concepts Introduction to Java 13 CS 3300 Object-Oriented Concepts Introduction to Java 14 Program Execution Models Compilation Translates the source code of a program into machine code Platform dependent Interpretation Directly parse and execute the source code of a program without generating machine code Java Virtual Machine Stage 1 -- Compilation of the source code to bytecode Stage 2 -- Execution of bytecode Interpretation JIT (Just-in-time) compilation Direct execution -- use firmware, embedded java bytecode in a chip CS 3300 Object-Oriented Concepts Introduction to Java 15 CS 3300 Object-Oriented Concepts Introduction to Java 16 Compiling Java Programs Executing Applications Java Source Code Java Compiler Interpreter Compiler Java chip Native Machine code CS 3300 Object-Oriented Concepts Introduction to Java 17 CS 3300 Object-Oriented Concepts Introduction to Java 18 3

Java Opcode (1-byte) operand 1 Security of JVM Shield memory addresses Verification of bytecode Run-time security manager operand 2 CS 3300 Object-Oriented Concepts Introduction to Java 19 CS 3300 Object-Oriented Concepts Introduction to Java 20 A Simple Application //This application program prints Welcome //to Java! public class Welcome public static void main(string[] args) System.out.println("Welcome to Java!"); CS 3300 Object-Oriented Concepts Introduction to Java 21 A Simple Applet /* This is an example of Java applets */ import java.awt.graphics; public class WelcomeApplet extends java.applet.applet public void paint (Graphics g) g.drawstring("welcome to Java!",10,10); CS 3300 Object-Oriented Concepts Introduction to Java 22 Creating an HTML File <html> <body> <applet code="welcomeapplet.class" width = 100 height = 40> </applet> </body> </html> Applications vs. Applets Similarities Differences CS 3300 Object-Oriented Concepts Introduction to Java 23 CS 3300 Object-Oriented Concepts Introduction to Java 24 4

Security Restrictions on Applets Applets are not allowed to read from, or write to, the file system of the computer viewing the applets. Applets are not allowed to run any programs on the browser s computer. Applets are not allowed to establish connections between the user s computer and another computer except with the server where the applets are stored. CS 3300 Object-Oriented Concepts Introduction to Java 25 5