Introduction to Java Kumar Harshit. Objectives ( 목적지 ) At the end of the lesson, the student should be able to: ● Describe the features of Java technology.

Slides:



Advertisements
Similar presentations
1 Copyright © 2005, Oracle. All rights reserved. Introducing the Java and Oracle Platforms.
Advertisements

CSci 1130 Intro to Computer Programming in Java
In Review JAVA C++ GUIs - Windows Webopedia.com.
Introduction To Java Objectives For Today â Introduction To Java â The Java Platform & The (JVM) Java Virtual Machine â Core Java (API) Application Programming.
Java Applet Security Diana Dong CS 265 Spring 2004.
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.
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 Computer Programming CSC 1401: Introduction to Programming with Java Lecture 2 Wanda M. Kunkle.
Introduction to Java.
Introduction to the JDK Java for Computational Finance
L EC. 01: J AVA FUNDAMENTALS Fall Java Programming.
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:
CMSC 202 Computer Science II for Majors Fall 2009 Introduction.
Sadegh Aliakbary Sharif University of Technology Fall 2011.
Introduction to Java Programming. Contents 1. Java, etc. 2. Java's Advantages 3. Java's Disadvantages 4. Types of Java Code 5. Java Bytecodes 6. Steps.
Java Introduction 劉登榮 Deng-Rung Liu 87/7/15. Outline 4 History 4 Why Java? 4 Java Concept 4 Java in Real World 4 Language Overview 4 Java Performance!?
JAVA v.s. C++ Programming Language Comparison By LI LU SAMMY CHU By LI LU SAMMY CHU.
Chapter 1 Coding Introduction.
Introduction to Programming Prof. Rommel Anthony Palomino Department of Computer Science and Information Technology Spring 2011.
CSCI 224 Introduction to Java Programming. Course Objectives  Learn the Java programming language: Syntax, Idioms Patterns, Styles  Become comfortable.
Sadegh Aliakbary Sharif University of Technology Spring 2011.
Sadegh Aliakbary. Copyright ©2014 JAVACUP.IRJAVACUP.IR All rights reserved. Redistribution of JAVACUP contents is not prohibited if JAVACUP.
1. 2 is high level programming language like C++, Visual Basic, developed by James Gosling and Patrick Naughton at Sun Microsystems in 1991.
Sadegh Aliakbary Sharif University of Technology Fall 2010.
Java Beserkers Group 4. Start of Java Development began on June of 1991 by a group of computer scientist at the Sun Mircrosystems Company Development.
 2003 Prentice Hall, Inc. All rights reserved. 1 Java Training Course Dr. H.E. Dunsmore Purdue University Java – How to Program, Deitel (5 th Edition)
Java Introduction Lecture 1. Java Powerful, object-oriented language Free SDK and many resources at
Introduction to the Java Virtual Machine 井民全. JVM (Java Virtual Machine) the environment in which the java programs execute The specification define an.
Sadegh Aliakbary Sharif University of Technology Fall 2012.
1 Module Objective & Outline Module Objective: After completing this Module, you will be able to, appreciate java as a programming language, write java.
JAVA Java is a programming language and computing platform first released by Sun Microsystems in It was first developed by James Gosling at Sun Microsystems,
Introduction and Features of Java. What is java? Developed by Sun Microsystems (James Gosling) A general-purpose object-oriented language Based on C/C++
CPRG 215 Introduction to Object-Oriented Programming with Java Module 1-Introduction to Java Topic 1.1 Basics of Java Produced by Harvey Peters, 2008 Copyright.
Salman Marvasti Sharif University of Technology Fall 2014.
What Is Java? According to Sun in a white paper: Java: A simple, object-oriented, network-savvy, interpreted, robust, secure, architecture-neutral, portable,
CIS 120 Problem Solving Programming Java. Problem Solving Problem-Solving: the process of defining a problem, searching for relevant information and resources.
National Taiwan University Department of Computer Science and Information Engineering National Taiwan University Department of Computer Science and Information.
We will talking about story of JAVA language. By Kristsada Songpartom.
CT1513 Introduction To java © A.AlOsaimi.
1. An Introduction A Programming Language A Technology Java Development Kit Java API One Language: Three Editions Standard Edition Enterprise Edition.
A compiler is a computer program that translate written code (source code) into another computer language Associated with high level languages A well.
Introduction Mehdi Einali Advanced Programming in Java 1.
Java – in context Main Features From Sun Microsystems ‘White Paper’
JAVA Ekapap Julnonyang When it was implemented? Developed by Sun Microsystems. The first public implementation was Java 1.0 in 1995 The language.
1 Introduction Read D&D Sec 1.8; Sec 1.13 THE Java tutorial -
ITP 109 Week 2 Trina Gregory Introduction to Java.
Introduction to Programming 1 1 2Introduction to Java.
Introduction to JAVA Programming
JAVA TRAINING IN NOIDA. JAVA Java is a general-purpose computer programming language that is concurrent, class-based, object-oriented and specifically.
Sung-Dong Kim, Dept. of Computer Engineering, Hansung University Java - Introduction.
Fundamental of Java Programming (630002) Unit – 1 Introduction to Java.
Chapter 1 Coding Introduction.
Applications Active Web Documents Active Web Documents.
Java™ 2 Platform Getting Started.
Before You Begin Nahla Abuel-ola /WIT.
Introduction to Computers, the Internet and the World Wide Web
Lecture 1: Introduction to JAVA
Topic: Difference b/w JDK, JRE, JIT, JVM
Introduction Enosis Learning.
Introduction Enosis Learning.
Chapter 1 Coding Introduction.
Advanced Programming Fall 2017.
(Computer fundamental Lab)
Java History, Editions, Version Features
F II 1. Background Objectives
Chap 1. Getting Started Objectives
Review of Previous Lesson
Presentation transcript:

Introduction to Java Kumar Harshit

Objectives ( 목적지 ) At the end of the lesson, the student should be able to: ● Describe the features of Java technology such as the Java virtual ( 실질상의 ) machine, garbage ( 쓰레기 ) collection and code security. Describe the different phases ( 양상 ) of a Java program.

Java Background: History Java – was created in 1991 – by James Gosling et al. of Sun Microsystems. – Initially called Oak, in honor of the tree outside Gosling's window, its name was changed to Java because there was already a language called Oak.

Java Background: History Java – The original motivation ( 자극, 유도 ) for Java ● The need for platform independent language that could be embedded ( 파묻다 ) in various consumer electronic products like toasters and refrigerators. – One of the first projects developed using Java ● a personal hand-held remote control named Star 7. – At about the same time, the World Wide Web and the Internet were gaining popularity. Gosling et. al. realized that Java could be used for Internet programming.

Phases of a Java Program The following figure describes the process of compiling and executing a Java program

Phases of a Java Program

Java Background: What is Java Technology? The Java technology is: – A programming language – A development environment – An application environment – A deployment ( 전개, 배치 ) environment

Java Technology: Programming Language As a programming language, Java can create all kinds of applications that you could create using any conventional programming language.

Java Technology: A Development Environment As a development environment, Java technology provides you with a large suite ( 한 조 ) of tools: – A compiler (javac) – An interpreter (java) – A documentation generator (javadoc) – A class file packaging tool and so on...

Java Technology: An Application and Runtime Environment Java technology applications are general-purpose ( 만능의 ) programs that run on any machine where the Java runtime environment (JRE) is installed. There are two main deployment ( 전개, 배치 ) environments: 1. The JRE supplied by the Java 2 Software Development Kit (SDK) contains the complete set of class files for all the Java technology packages, which includes basic language classes, GUI component classes, and so on. 2. The other main deployment environment is on your web browser. Most commercial browsers supply a Java technology interpreter and runtime environment.

Java Features Some features of Java: – The Java Virtual Machine – Garbage Collection – Code Security

Java Features: The Java Virtual Machine Java Virtual Machine (JVM) – An imaginary ( 상상의 ) machine that is implemented by emulating ( … 와 경쟁하다 ) software on a real Machine – provides the hardware platform specifications to which you compile all Java technology code Bytecode – a special machine language that can be understood by the Java Virtual Machine (JVM) – independent of any particular computer hardware, so any computer with a Java interpreter can execute the compiled Java program, no matter what type of computer the program was compiled on.

Java Features: Garbage Collection Garbage collection thread – responsible for freeing ( 해방시키다 ) any memory that can be freed. This happens automatically during the lifetime of the Java program. – programmer is freed from the burden of having to de-allocate ( 해방 시키다 ) that memory themselves.

Java Features: Code Security C ode security is attained ( 성취하다 ) in Java through the implementation ( 충족 ) of its Java Runtime Environment (JRE). JRE – R uns code compiled for a JVM – P erforms ( 성취하다 ) class loading (through the class loader), More about this in the next slide. – C ode verification ( 확인하다 ) (through the bytecode verifier) and – F inally code execution

Java Features: Code Security Class Loader – Responsible for loading all classes needed for the Java program. – Adds security by separating the namespaces for the classes of the local file system from those that are imported from network sources. – After loading all the classes, the memory layout of the executable is then determined( 결심시키다 ). This adds protection against unauthorized ( 자기식의 ) access ( 이용 ) to restricted ( 제약된 ) areas of the code since the memory layout is determined during runtime.

Java Features: Code Security Bytecode verifier – Tests the format ( 판형 ) of the code fragments ( 부서진 조 각 ). – And checks the code fragments for illegal ( 불법 ) code that can violate ( 범하다 ) access rights ( 파일 등에의 ) to objects.

Summary Java Background – History – Java Technology A programming language, development environment, application environment and deployment environment – Java Features Java Virtual machine, garbage collection and code security Phases of a Java Program – Write, compile, run