Sung-Dong Kim, Dept. of Computer Engineering, Hansung University Java - Introduction.

Slides:



Advertisements
Similar presentations
Introduction To Java Objectives For Today â Introduction To Java â The Java Platform & The (JVM) Java Virtual Machine â Core Java (API) Application Programming.
Advertisements

Introduction to JAVA Vijayan Sugumaran School of Business Administration Oakland University Rochester, MI
Lab Information Security Using Java (Review) Lab#0 Omaima Al-Matrafi.
Lab#1 (14/3/1431h) Introduction To java programming cs425
The Java Language. Topics of this Course  Introduction to Java  The Java Language  Object Oriented Programming in Java  Exceptions Handling  Threads.
Client Side Programming Using Java Applet Outcomes: You will be expected to know: – Java Applets and HTML file; –bytecode and platform independent programs;
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.
Object Orientated Programming
IC211 Object Oriented Programming Overview of Java.
Java: History and Introduction (Lecture # 1). History… Java – Based on C and C++ – Developed in 1991 for intelligent consumer electronic devices – Green.
Introduction to Java Kiyeol Ryu Java Programming Language.
Introduction to Java Programming
Java for High Performance Computing Jordi Garcia Almiñana 14 de Octubre de 1998 de la era post-internet.
CS884 (Prasad)Java Goals1 “Perfect Quote” You know you've achieved perfection in design, Not when you have nothing more to add, But when you have nothing.
Introduction to Java.
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.
Lecture 1: Overview of Java. What is java? Developed by Sun Microsystems (James Gosling) A general-purpose object-oriented language Based on C/C++ Designed.
01 Introduction to Java Technology. 2 Contents History of Java What is Java? Java Platforms Java Virtual Machine (JVM) Java Development Kit (JDK) Benefits.
Java PAL.  Contains the development kit and the runtime environment ( aka the Java Virtual Machine )  Download Link:
1 CSC 551: Web Programming Spring 2004 Java Overview  Design goals & features  platform independence, portable, secure, simple, object-oriented, … 
JAVA v.s. C++ Programming Language Comparison By LI LU SAMMY CHU By LI LU SAMMY CHU.
Programming Languages and Paradigms Object-Oriented Programming.
CSCI 224 Introduction to Java Programming. Course Objectives  Learn the Java programming language: Syntax, Idioms Patterns, Styles  Become comfortable.
About the Java  Java technology is both a programming language and a platform –The Java Programming Language A high-level language that can be characterized.
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.
Liang, Introduction to Java Programming, Sixth Edition, (c) 2007 Pearson Education, Inc. All rights reserved Programming Languages Machine.
Introduction to Programming Languages. Problem Solving in Programming.
Java Introduction Lecture 1. Java Powerful, object-oriented language Free SDK and many resources at
Why Java? A brief introduction to Java and its features Prepared by Mithat Konar.
1 Module Objective & Outline Module Objective: After completing this Module, you will be able to, appreciate java as a programming language, write java.
University of Houston-Clear Lake Proprietary© 1997 Evolution of Programming Languages Basic cycle of improvement –Experience software difficulties –Theory.
CS 11 java track: lecture 1 Administrivia need a CS cluster account cgi-bin/sysadmin/account_request.cgi need to know UNIX
Introduction and Features of Java. What is java? Developed by Sun Microsystems (James Gosling) A general-purpose object-oriented language Based on C/C++
Java Introduction 1. Introduction to Java Programming2 Computers and Computer Languages Computers are everywhere –how many computers do you own? Computers.
1 Programming Fundamentals AITI-GP. 2 Introduction to Programming.
Introduction to java Prepared By:-Pragnesh Patel Lect. In Computer Dept. NSIT,Jetalpur 1.
1 Introduction to Java. 2 What is Java? A programming language. A platform –A virtual machine (JVM) definition. –Runtime environments in diverse hardware.
What Is Java? According to Sun in a white paper: Java: A simple, object-oriented, network-savvy, interpreted, robust, secure, architecture-neutral, portable,
National Taiwan University Department of Computer Science and Information Engineering National Taiwan University Department of Computer Science and Information.
Chapter 2: A Brief History Object- Oriented Programming Presentation slides for Object-Oriented Programming by Yahya Garout KFUPM Information & Computer.
Computer Programming 2 Why do we study Java….. Java is Simple It has none of the following: operator overloading, header files, pre- processor, pointer.
Core Java Introduction Byju Veedu Ness Technologies httpdownload.oracle.com/javase/tutorial/getStarted/intro/definition.html.
1. An Introduction A Programming Language A Technology Java Development Kit Java API One Language: Three Editions Standard Edition Enterprise Edition.
Java -- A very Hot Object- Oriented Language Instructors: Fu-Chiung Cheng ( 鄭福炯 ) Associate Professor Computer Science & Engineering Tatung Institute of.
Java – in context Main Features From Sun Microsystems ‘White Paper’
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.
Introduction to JAVA Programming
Spring 2006 Special Topics in Computer Engineering: Java Intro 1 Crash Course in Java Based on notes from D. Hollinger Based in part on notes from J.J.
JAVA PROGRAMMING Buzzwords. Simple: Less complex syntax than C++ Not as easy to design as Visual Basic Small size of interpreter.
Fundamental of Java Programming (630002) Unit – 1 Introduction to Java.
Applications Active Web Documents Active Web Documents.
Object Oriented Programming in
Java™ 2 Platform Getting Started.
Done By: Ashlee Lizarraga Ricky Usher Jacinto Roches Eli Gomez
Chapter 1 Introduction to Computers, Programs, and Java
Internet and Java Foundations, Programming and Practice
Introduction Enosis Learning.
Introduction Enosis Learning.
Getting Started ARCS Lab..
Unit 41 – Programing in Java
From C++ to Java Java history: Oak, toaster-ovens, internet language, panacea What it is O-O language, not a hybrid (cf. C++) compiled to byte-code, executed.
CSC 551: Web Programming Spring 2004
(Computer fundamental Lab)
CSC 551: Web Programming Spring 2004
Java History, Editions, Version Features
Chap 1. Getting Started Objectives
Chap 4. Programming Fundamentals
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:

Sung-Dong Kim, Dept. of Computer Engineering, Hansung University Java - Introduction

Introduction Origin A part of a development of an advanced software for consumer electronics Small, reliable, portable, distributed, real-time embedded systems Problems Compiler technology Several other problems Solution Changing language  Java (2012-1) Java 2

Features (1) (2012-1) Java 3 Simple Object-oriented Distributed Interpreted Robust Secure Architecture neutral Portable high-performance Multithreaded Dynamic

Features (2) (2012-1) Java 4 Simple Omitted features from C++ Operator overloading Multiple inheritance Extensive automatic coercions Added features Auto garbage collection: easy programming, reduction of bugs

Features (3) (2012-1) Java 5 Being small Construction of software the can run stand-alone in small machines Size of basic interpreter and class support: 40K bytes + basic standard libraries and thread support: additional 175K Object-Oriented Clean definition of interfaces Provide reusable “software ICs” Design for data (object) and interface to it

Features (4) (2012-1) Java 6 Distributed Extensive library of routines for TCP/IP protocols: HTTP, FTP, … Robust Java is intended to write reliable programs Early checking for possible problems  dynamic (runtime) checking  eliminate situations that are error prone Strongly typed language: compile time checking Pointer model: eliminates the possibility of overwriting memory and corrupting data

Features (5) (2012-1) Java 7 Secure Java is intended to be used in networked/distributed environments Authentication techniques based on public-key encryption Architecture Neutral Java is designed to support applications on networks Compiler generates an architecture neutral object file format Bytecode instructions Easy to interpret on any machine Easily translated into native machine code on the fly

Features (6) (2012-1) Java 8 Portable No implementation dependent aspects of the specifications “int”: a signed two’s complement 32 bit integer “float”: 32-bit IEEE 754 floating point number Libraries of the system define portable interfaces Abstract Window class Implementations of it for Unix, Windows, and the Macintosh

Features (7) (2012-1) Java 9 Interpreted Java interpreter: execute Java bytecode More compile-time information is available at runtime Linker’s type checking RPC protocol derivation Easy to debugging

Features (8) (2012-1) Java 10 High performance Bytecode can be translated on the fly into machine code Automatic register allocation Complier does some optimization Reasonably good code The performance of bytecodes converted to machine code is almost indistinguishable from native C or C++

Features (9) (2012-1) Java 11 Multithreaded Threads: lightweight processes or execution contexts Doing many things at the same time Sophisticated set of synchronization primitives based on the monitor and condition variable paradigm Better interactive responsiveness and real-time behavior

Summary (2012-1) Java 12 Java language provides a powerful addition to the tools that programmers have at their disposal Java makes programming easier: OO, automatic garbage collection Java applications are ideal for a diverse environment like Internet

Java’s Running Environment (2012-1) Java 13 Java bytecode Machine code instruction for Java Virtual Machine “write once, run anywhere” philosophy Java Platform Java Virtual Machine (Java VM) Java Application Programming Interface (Java API)  package

(2012-1) Java 14

(2012-1) Java 15

Java program Creation Process (2012-1) Java 16 Application Create a source file: HelloWorld.java Compile the source file: javac HelloWorld.java Run the program: java HelloWorld Applet Create a source file: HelloWorld.java Create a html file: HelloWorld.html Compile the source file: javac HelloWorld.java Run the program: appletviewer HelloWorld.html

Getting Started (1) (2012-1) Java 17 Class: blueprint Object Members Fields: state Methods: behavior, collections of statements

Getting Started (2) (2012-1) Java 18 HelloWorld program main: method of class, public, static, void static: belongs to class, not associated with a particular instnace Signature: name of method + parameter list Method declaration: signature + body Method invocation: object reference

(2012-1) Java 19 class HelloWorld { public static void main(String[] args) { System.out.println(“Hello, world”); }

Getting Started (3) (2012-1) Java 20 Compile javac HellowWorld.java javac is Java compiler Run java HelloWorld java is the Java bytecode interpreter

21 Java Compile and Runtime Environment Java source code  bytecodes Bytecodes: instructions for JVM Applets Store byte code files on an HTTP server When an user runs applets Bytecodes are loaded into memory and verified for security

22