History Introduction to Java Characteristics of Java Data types

Similar documents
Introduction to Java Programming CPIT 202. WEWwwbvxnvbxmnhsgfkdjfcn

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

Introduction to JAVA Programming Language

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

Lecture 1: Introduction to Java

Chapter 1 Introduction to Java

Chapter 1 Introduction to Computers, Programs, and Java

CHAPTER 1. Introduction to JAVA Programming

IQTIDAR ALI Lecturer IBMS Agriculture University Peshawar

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

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

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

Chapter 1 Introduction to Computers, Programs, and Java

Chapter 1 Introduction to Computers, Programs, and Java

Programming. Syntax and Semantics

Advanced Object-Oriented Programming Introduction to OOP and Java

Special Topics: Programming Languages

Lecture 1: Overview of Java

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

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

Chapter 1 Introduction to Computers, Programs, and Java

Agenda. Announcements. Extreme Java G Session 2 - Main Theme Java Tools and Software Engineering Techniques

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

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

Chapter 1: Introduction to Computers, Programs, and Java

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

Zhifu Pei CSCI5448 Spring 2011 Prof. Kenneth M. Anderson

Java Programming Language Mr.Rungrote Phonkam

Object Oriented Concepts and Programming (CSC244) By Dr. Tabbasum Naz

2 Introduction to Java. Introduction to Programming 1 1

1. What is Jav a? simple

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

Chapter 1 Introduction to Computers, Programs, and Java

Core Java Syllabus. Overview

Eng. Mohammed S. Abdualal

Seminar report Java Submitted in partial fulfillment of the requirement for the award of degree Of CSE

Chapter 1 Introduction to Computers, Programs, and Java

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

Introduction to Java

Core JAVA Training Syllabus FEE: RS. 8000/-

CS335 Graphics and Multimedia

Programming Languages FILS Andrei Vasilateanu

Getting Started. Chapter 1. Java Programming FROM THE BEGINNING. Chapter 1: Getting Started

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

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

Chapter 1 GETTING STARTED. SYS-ED/ Computer Education Techniques, Inc.

Module 1: Introduction to Computers, Programs, and Java

Chapter 1 Introduction to Computers, Programs, and Java

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

Introduction to Java Programming

Chapter 1 INTRODUCTION SYS-ED/ COMPUTER EDUCATION TECHNIQUES, INC.

An Introduction to Software Engineering. David Greenstein Monta Vista High School

From C++ to Java. Duke CPS

This lecture will take you through simple and practical approach while learning Java Programming language.

B.V. Patel Institute of BMC & IT, UTU 2014

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

CS11 Java. Fall Lecture 1

Introduction to Programming (Java) 2/12

: Primitive data types Variables Operators if, if-else do-while, while, for. // // First Java Program. public class Hello {

Eng. Mohammed Alokshiya

Introduction to Java and OOP. Hendrik Speleers

Core Java Syllabus. Pre-requisite / Target Audience: C language skills (Good to Have)

Object Oriented Programming with JAVA UNIT - I

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

CSE 421 Course Overview and Introduction to Java

DAY 3 J2ME Aalborg University, Mobile Device Group. Mobile. Mobile Phone Programming

CS260 Intro to Java & Android 02.Java Technology

Java Internals. Frank Yellin Tim Lindholm JavaSoft

Getting Started With Java

G51OOP. Object Oriented Programming Comp Sci University of Nottingham Unit 1 : Introduction

Chapter 1 Introduction to Computers, Programs, and Java

Java Lecture Note. Prepared By:

Introduction to Java. Nihar Ranjan Roy.

2 rd class Department of Programming. OOP with Java Programming

Today. Instance Method Dispatch. Instance Method Dispatch. Instance Method Dispatch 11/29/11. today. last time

Java is a high-level programming language originally developed by Sun Microsystems and released in Java runs on a variety of

Outline. Object Oriented Programming. Course goals. Staff. Course resources. Assignments. Course organization Introduction Java overview Autumn 2003

Java Programming. Manuel Oriol, March 22nd, 2007

PLATFORM TECHNOLOGY UNIT-5

Programming with Java

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

Introduction to OOP Using Java Pearson Education, Inc. All rights reserved.

Last class: OS and Architecture. OS and Computer Architecture

Last class: OS and Architecture. Chapter 3: Operating-System Structures. OS and Computer Architecture. Common System Components

CLI and CLR. Antonio Cisternino Giuseppe Attardi

Installation guide for Java. Step by Step Guide. A C A D G I L D Page 1

Praktische Softwaretechnologie

Java Language Basics: Introduction To Java, Basic Features, Java Virtual Machine Concepts, Primitive Data Type And Variables, Java Operators,

Advanced programming for Java platform. Introduction

Introduction to.net Framework

NOOTAN PADIA ASSIST. PROF. MEFGI, RAJKOT.

COE318 Lecture Notes Week 3 (Week of Sept 17, 2012)

J2ME ARCHITECTURE AND RELATED EMBEDDED TECHNOLOGIES

Fundamentals of Programming. By Budditha Hettige

C++ Spring Break Packet 11 The Java Programming Language

JAVA An overview for C++ programmers

Introduction To Java. Chapter 1. Origins of the Java Language. Origins of the Java Language. Objects and Methods. Origins of the Java Language

Selected Java Topics

Compiling Techniques

Transcription:

Course Name: Advanced Java

Lecture 1 Topics to be covered History Introduction to Java Characteristics of Java Data types

What is Java? An Object-Oriented Programming Language developed at Sun Microsystems A Virtual Machine (run-time environment) that can be embedded in web browsers (e.g. Netscape Navigator, Microsoft Internet Explorer and IBM WebExplorer) and operating systems. A set of standardized Class libraries (packages), that support: Creating graphical user interfaces Communicating over networks Controlling multimedia data

History James Gosling and Sun Microsystems Oak Java, May 20, 1995, Sun World HotJava The first Java-enabled Web browser JDK Evolutions J2SE, J2ME, and J2EE

Characteristics of Java Java is simple Object-Oriented Distributed Interpreted Robust Secure Architectureneutral Portable High-performance Multithreaded dynamic

Java is Simple Java is not just a language for use with the Internet. It is a full featured Object-Oriented Programming Language (OOPL). Java is a bit easier than the popular OOP language C++. Java uses automatic memory allocation and garbage collection.

What is ObjectObject-Oriented Programming? Think of OOP as a set of implementation techniques that Can be done in any programming language Are very difficult to do in most programming languages OOP provides great flexibility, modularity, and reusability.

Java is Distributed Distributed computing involves several computers working together on a network. Java s concurrency features make is unique for developing many interactive and networked applications.

Java is Interpreted Java Virtual Machine: Java is compiled to byte-codes whose target architecture is the Java Virtual machine (JVM). The virtual machine is embeddable within other environments, e.g. web browser and operating systems. Utilize a byte-code verifier when reading in byte-codes. The class loader is employed for classes loaded over the network (enhances security)

Java Virtual Machine JVM Environment Java Source code.java javac Java byte-code.class java Java VM

Java is Robust Robust means reliable. No programming language can ensure complete reliability. Java puts a lot of emphasis on early checking for possible errors, because Java compilers can detect many problems that would first show up at execution time in other languages. Java has a runtime exception-handling feature to provide programming support for robustness.

Java Is ArchitectureArchitecture-Neutral Java is interpreted. JIT compiler Just-in-time compilers This provides Improved performance Better match to specific hardware

JIT Compiler JIT- takes byte-codes and change it to machine code. JVM Running Applet or Application.class file machine code J.I.T. Compiler

JIT Compiler Because of the need for architecture independence, performance tuning must be performed on the client-side. This client-side compilation is known as Just-In-Time (JIT) compilation.

Portable, Dynamic, Multithreaded, and Extensible Java runtime based on architecturally-neutral byte-codes (per class). Multithreading is a program s capability to perform several tasks simultaneously..class files Java Runtime interpreted loaded classes (byte-codes) call Native.dll Native.dll

Advantages Byte-code is a compact machine language form. In Java the target machine is the Java Virtual Machine (VM). These byte-codes are thus portable across architecture boundaries. Applets and Applications have class files loaded on their behalf in order to execute.

JDK Editions Java Standard Edition (J2SE) J2SE can be used to develop client-side standalone applications or applets. Java Enterprise Edition (J2EE) J2EE can be used to develop server-side applications such as Java servlets and Java ServerPages. Java Micro Edition (J2ME). J2ME can be used to develop applications for mobile devices such as cell phones.

Java Architecture Java Architecture consists of four components: Java programming language Java class file JVM(Java Virtual Machine) Java API(Application programming Interface) Creates a java file the Java calls Programmin g Language Compiles to byte code Java Class File Executes the class file JVM makes method Java API

Data Types The data that is stored in memory can be of many types. Data types in java can be classified into two categories: Primitive Reference

Primitive Data types Primitive data types can further be divided into four categories: Numeric Byte, int, short, long Fractional Float, double Character Boolean

Reference Data type When we create an object, we need to store the reference of that object in some variable and that variable is called reference variable and the data type for that variable is called reference data type.