Docsity

Java and its Evolution, Lecture notes of Java Programming

Partial preview of the text

Download Java and its Evolution and more Lecture notes Java Programming in PDF only on Docsity!

Java and its Evolution

Contents

Java Introduction

Java Features

How Java Differs from other OO

languages

Java and the World Wide Web

Java Environment

Build your first Java Program

Summary and Reference

Java Introduction

Originally created for consumer

electronics (TV, VCR, Freeze,

Washing Machine, Mobile Phone).

Java - CPU Independent language

Internet and Web was just

emerging, so Sun turned it into a

language of Internet Programming.

It allows you to publish a webpage

with Java code in it.

Java Milestones

Year Development 1990 Sun decided to developed special software that could be used for electronic devices. A project called Green Project created and head by James Gosling. 1991 Explored possibility of using C++, with some updates announced a new language named “Oak” 1992 The team demonstrated the application of their new language to control a list of home appliances using a hand held device. 1993 The World Wide Web appeared on the Internet and transformed the text-based interface to a graphical rich environment. The team developed Web applets (time programs) that could run on all types of computers connected to the Internet.

Md. (^7) 

Java is a general purpose object oriented programming

language.

Developed by Sun Microsystems. (James Gostling)

Initially called “Oak” but was renamed as “Java” in 1995.

Initial motivation is to develop a platform independent

language to create software to be embedded in various

consumer electronics devices.

Become the language of internet. (portability and security).

History of Java

7

Md. (^8)

  1. Compiled and Interpreted
  2. Platform Independent and portable
  3. Object Oriented
  4. Robust and Secure
  5. Distributed
  6. Simple, Small and Familiar
  7. Multithreaded and Interactive
  8. High Performance
  9. Dynamic

Features of Java

8 05/07/2008 Mosarratj Jahan, Dept. of CSE, DU

Md. (^1) 

Java compiler produces an intermediate code known as

byte code for a machine, known as JVM.

It exists only inside the computer memory.

Machine code is generated by the java interpreter by acting

as an intermediary between the virtual machine and real

machine.

Java Virtual Machine

Java Program Java Compiler (^) Virtual Machine Bytecode Java Interpreter Machine Code 10 05/07/2008 Mosarratj Jahan, Dept. of CSE, DU

Md. (^1)

“Write-Once Run-Anywhere”-easily moved from one

computer to other

Changes in system resources will not force any change in the

program.

The Java Virtual Machine (JVM) hides the complexity of

working on a particular platform

Convert byte code into machine level representation.

Platform Independent and

Portable

11 05/07/2008 Mosarratj Jahan, Dept. of CSE, DU

Md. (^1)

Designed with the intention of being secure

- Robust means reliable

No pointer arithmetic or memory management!

Strict compile time and run time checking of data

type.

Exception handling

It verify all memory access

Ensure that no viruses are communicated with an

applet.

Robust and Secure

13 05/07/2008 Mosarratj Jahan, Dept. of CSE, DU

Md. (^1) 

Java grew up in the days of the Internet

Java applications open and access remote

objects as they do in local systems.

Share data and programs.

Distributed

14 05/07/2008 Mosarratj Jahan, Dept. of CSE, DU

Md. (^1)

Handles multiple tasks simultaneously.

Java runtime system contains tools to support multiprocess

synchronization and construct smoothly running interactive

systems.

Multithreaded and Interactive

16 05/07/2008 Mosarratj Jahan, Dept. of CSE, DU

Md. (^1) Java performance is impressive for an interpreted language. Provisions are added to reduce overhead at runtime. Incorporation of multithreading enhance the overall execution speed.

High Performance

17 05/07/2008 Mosarratj Jahan, Dept. of CSE, DU

Ease of Development

Some features reduce the work of

programmer by creating reusable

code

Generics,enhanced for

loop,autoboxing and unboxing

etc..are those features

Each feature is designed to develop

java programs in easier way

Monitoring and Manageability

Java monitoring and management

API s,JMX-java management

extension to monitor and manage

java applications.

Tools such as jconsole,jps,jstat are

used monitoring facilities.

GUI based tool called jconsole to

monitor JVM