Mobile Application Languages XML, Java, J2ME and JavaCard Lesson 04 Java



Similar documents
Characteristics of Java (Optional) Y. Daniel Liang Supplement for Introduction to Java Programming

CSC 551: Web Programming. Spring 2004

2 Introduction to Java. Introduction to Programming 1 1

Programming Languages

An Overview of Java. overview-1

1. Overview of the Java Language

For Course Details, visit:

CS 209 Programming in Java #1

INTRODUCTION TO JAVA PROGRAMMING LANGUAGE

Java in Education. Choosing appropriate tool for creating multimedia is the first step in multimedia design

Cloud Computing. Up until now

Garbage Collection in the Java HotSpot Virtual Machine

Java Card TM Open Platform for Smart Cards

An Easier Way for Cross-Platform Data Acquisition Application Development

Application Servers - BEA WebLogic. Installing the Application Server

Enterprise Java. Where, How, When (and When Not) to Apply Java in Client/Server Business Environments. Jeffrey Savit Sean Wilcox Bhuvana Jayaraman

The Java Virtual Machine and Mobile Devices. John Buford, Ph.D. Oct 2003 Presented to Gordon College CS 311

A Modular Approach to Teaching Mobile APPS Development

Fachbereich Informatik und Elektrotechnik SunSPOT. Ubiquitous Computing. Ubiquitous Computing, Helmut Dispert

What Perl Programmers Should Know About Java

Online Recruitment System 1. INTRODUCTION

Developing Embedded Software in Java Part 1: Technology and Architecture

Nokia 9210i/9290 Communicators and PersonalJava TM Application Development

CSE 452: Programming Languages. Acknowledgements. Contents. Java and its Evolution

Java 7 Recipes. Freddy Guime. vk» (,\['«** g!p#« Carl Dea. Josh Juneau. John O'Conner

What Is the Java TM 2 Platform, Enterprise Edition?

How to Build an E-Commerce Application using J2EE. Carol McDonald Code Camp Engineer

Introducing Apache Pivot. Greg Brown, Todd Volkert 6/10/2010

Implementing Java Distributed Objects with JDBC

Extreme Java G Session 3 Main Theme Java Core Technologies (Part I) Dr. Jean-Claude Franchitti

Jonathan Worthington Scarborough Linux User Group

Java Garbage Collection Basics

B M C S O F T W A R E, I N C. BASIC BEST PRACTICES. Ross Cochran Principal SW Consultant

Fundamentals of Java Programming

Restraining Execution Environments

Limi Kalita / (IJCSIT) International Journal of Computer Science and Information Technologies, Vol. 5 (3), 2014, Socket Programming

Introduction to Sun ONE Application Server 7

PG DAC. Syllabus. Content. Eligibility Criteria

Netbeans 6.0. José Maria Silveira Neto. Sun Campus Ambassador

Chapter 1 Programming Languages for Web Applications

Java Card. Smartcards. Demos. . p.1/30

JAVA 2 Network Security

Last Class: OS and Computer Architecture. Last Class: OS and Computer Architecture

Elements of Advanced Java Programming

What is a programming language?

Glassfish, JAVA EE, Servlets, JSP, EJB

picojava TM : A Hardware Implementation of the Java Virtual Machine

Apache Jakarta Tomcat

Service Oriented Architectures

Japan Communication India Skill Development Center

A Beginners Guide to Fusion Middleware

Instrumentation Software Profiling

Experimental Evaluation of Distributed Middleware with a Virtualized Java Environment

A generic framework for game development

DIABLO VALLEY COLLEGE CATALOG

Web Services Performance: Comparing Java 2 TM Enterprise Edition (J2EE TM platform) and the Microsoft.NET Framework

SE 450 Object-Oriented Software Development. Requirements. Topics. Textbooks. Prerequisite: CSC 416

Waratek Cloud VM for Java. Technical Architecture Overview

Databases Lesson 04 Client Server Computing and Adaptation

JavaPOS TM FAQ. What is an FAQ? What is JavaPOS?

An introduction to creating JSF applications in Rational Application Developer Version 8.0

OUR COURSES 19 November All prices are per person in Swedish Krona. Solid Beans AB Kungsgatan Göteborg Sweden

Cognos8 Deployment Best Practices for Performance/Scalability. Barnaby Cole Practice Lead, Technical Services

Japan Communication India Skill Development Center

Java applets. SwIG Jing He

Course Name: Course in JSP Course Code: P5

Mobile Operating Systems Lesson 07 Symbian OS

Lecture 1 Introduction to Android

Java Embedded Applications

Java on z/os. Agenda. Java runtime environments on z/os. Java SDK 5 and 6. Java System Resource Integration. Java Backend Integration

XTM Web 2.0 Enterprise Architecture Hardware Implementation Guidelines. A.Zydroń 18 April Page 1 of 12

Berlin Mainframe Summit. Java on z/os IBM Corporation

<Insert Picture Here> Betting Big on JavaServer Faces: Components, Tools, and Tricks

<Insert Picture Here> Java, the language for the future

Tuning WebSphere Application Server ND 7.0. Royal Cyber Inc.

Programmation 2. Introduction à la programmation Java

Contents. Client-server and multi-tier architectures. The Java 2 Enterprise Edition (J2EE) platform

Japan Communication India Skill Development Center

Chapter 3 Operating-System Structures

zen Platform technical white paper

Lesson 06: Basics of Software Development (W02D2

Fast remote data access for control of TCP/IP network using android Mobile device

IBM Tivoli Composite Application Manager for WebSphere

Java-technology based projects

Solutions for detect, diagnose and resolve performance problems in J2EE applications

AQA GCSE in Computer Science Computer Science Microsoft IT Academy Mapping

Latte Rapid Application Development. William Dunlap Product Manager Borland International

Effective Java Programming. efficient software development

Java Programming. Binnur Kurt Istanbul Technical University Computer Engineering Department. Java Programming. Version 0.0.

A Scalability Study for WebSphere Application Server and DB2 Universal Database

WebSphere Performance Monitoring & Tuning For Webtop Version 5.3 on WebSphere 5.1.x

Computer Networks/DV2 Lab

Systems Software. Introduction to Information System Components. Chapter 1 Part 2 of 4 CA M S Mehta, FCA

Software: Systems and Application Software

Technical White Paper The Excel Reporting Solution for Java

CS 3530 Operating Systems. L02 OS Intro Part 1 Dr. Ken Hoganson

Cloud-based Data Logging, Monitoring and Analysis

CS420: Operating Systems OS Services & System Calls

Transcription:

Mobile Application Languages XML, Java, J2ME and JavaCard Lesson 04 Java Oxford University Press 2007. All rights reserved. 1

C and C++ C and C++ with in-line-assembly, Visual Basic, and Visual C++ the programming languages used with Windows platform Oxford University Press 2007. All rights reserved. 2

Java language Compiles into byte codes assuming a hypothetical CPU which possesses stack-organized architecture The codes run on a virtual machine Therefore, these can run on any operating system and hardware platform on which JVM is installed Oxford University Press 2007. All rights reserved. 3

JVM Provides the execution engine Native interfaces Runs the codes on the given OS and hardware Oxford University Press 2007. All rights reserved. 4

Java application, classes, and application threads compiled as platform-independent byte-codes Oxford University Press 2007. All rights reserved. 5

An application A program which runs on the user system Application threads the programs of the application, each one of which is assigned a priority and runs concurrently Oxford University Press 2007. All rights reserved. 6

J2SE Used to program the application, threads, applets, servlets, and aglets Oxford University Press 2007. All rights reserved. 7

Servlets The programs running on a web server Oxford University Press 2007. All rights reserved. 8

Servlet Lifecycle Consists of the sequential steps initiate, service, and destroy The init is analogous to main in a Java program Just as main ( ) executes first in Java program, init ( ) executes first in Servlets Oxford University Press 2007. All rights reserved. 9

Applets The programs running on a client Oxford University Press 2007. All rights reserved. 10

Applet Lifecycle Consists of the sequential steps initiate, start, stop, and destroy The init analogous to main in a Java program Just as main ( ) executes first in Java program, init ( ) is executed first in Applet Oxford University Press 2007. All rights reserved. 11

Aglets The mobile agents which run on a host Can be retracted or cloned Can be used for messaging Supports weak mobility can retain its state when it migrates from one host to another Oxford University Press 2007. All rights reserved. 12

Aglets Life Cycle Consists of the sequential steps creation, dispatch, activation, deactivation, and disposition Oxford University Press 2007. All rights reserved. 13

An application Developed by programming a set of Components Database or server can be connected to the UI components using the APIs Oxford University Press 2007. All rights reserved. 14

Java applications Developed using open software Java 2 SDK from Sun. JBuilder, Microsoft Visual Studio J++, and IBM Visual Age IBM Visual Age provides a visual programming method to a programmer The Visual Age tool provides source code and compiled byte codes Oxford University Press 2007. All rights reserved. 15

Class A construct in Java or C++, which is used to define a common set of variables, fields, and methods and whose instances give the objects Oxford University Press 2007. All rights reserved. 16

Java and Java-based languages possess some characteristic features Makes them the most used languages for mobile applications Oxford University Press 2007. All rights reserved. 17

Object oriented language Feature Each class a logical group with an identity, a state, and a behaviour specification A class is a named set of codes that has a number of members fields, methods, etc., so that objects can be created as instances of the class The operations done on the objects by passing the messages to them Oxford University Press 2007. All rights reserved. 18

Platform independence The program codes compiled in Java are independent of the CPU and OS used in a system because of the standard compilation into the byte codes Java codes complete mobility from one platform to another Java codes for mobile agents have weak mobility from one host to another Oxford University Press 2007. All rights reserved. 19

Robustness Java does not let the user assign pointers and write code for pointer manipulations All references to memory, freeing of the memory (garbage collection), deallocation (de-referencing), and validation of object types and array indices are done internally at the compile and run time Oxford University Press 2007. All rights reserved. 20

Standard APIs (application programming interfaces) Help a Java program to connect an application to a program, database, distributed object, or server developed on other platforms Oxford University Press 2007. All rights reserved. 21

Packages in Java Packages consisting of the classes and interfaces Packages help in fast development of the codes Oxford University Press 2007. All rights reserved. 22

Packages in Java java.lang for fundamental classes of Java Oxford University Press 2007. All rights reserved. 23

Packages in Java java.awt for Java foundation classes for creating GUIs Oxford University Press 2007. All rights reserved. 24

Packages java.swing for Java swing classes for creating lightweight GUIs Lightweight means not depending on the platform [system (OS) resources (for example, buttons)] unlike foundation classes which depend on the system resources Oxford University Press 2007. All rights reserved. 25

Packages in Java java.net is the package for network related classes for example, TCP/IP, UDP, HTTP, and FTP Oxford University Press 2007. All rights reserved. 26

Packages in Java java.security for classes in Java security framework. The examples are classes for RSA, DSA, and certificates java.sound for audio processing Oxford University Press 2007. All rights reserved. 27

Packages in Java java.io.serializable serializable interfaces Oxford University Press 2007. All rights reserved. 28

Serialization of Object Object state, as defined by the heap in memory, is written in memory as a serial byte stream Therefore, when the object migrates, it is received as serial byte stream and after de-serializing, the original object is restored into memory Oxford University Press 2007. All rights reserved. 29

JavaBean Has a property assigned to the fields in a class JavaBeans integrated into a container. Any change in property is listened to by a listener and the action method is executed Oxford University Press 2007. All rights reserved. 30

JavaBean Example address property Any change in address has to be listened to by all related Beans in the container Oxford University Press 2007. All rights reserved. 31

JavaBean JavaBean valuable for developing reusable software components The application, applets, or servlets integrate the JavaBeans java.beans package contains the classes for developing the JavaBeans Oxford University Press 2007. All rights reserved. 32

Summary Java Byte code compilation Virtual machine Objected oriented Platform independent Robust Class, object and packages JavaBean Oxford University Press 2007. All rights reserved. 33

End of Lesson 04 Java Oxford University Press 2007. All rights reserved. 34