L EC. 01: J AVA FUNDAMENTALS Fall. 2014 0 Java Programming.

Slides:



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

1 G54PRG Programming Lecture 1 Amadeo Ascó Adam Moore G54PRG Programming Lecture 1 Amadeo Ascó 3 Java Programming Language.
Introduction To Java Objectives For Today â Introduction To Java â The Java Platform & The (JVM) Java Virtual Machine â Core Java (API) Application Programming.
Liang, Introduction to Java Programming, Sixth Edition, (c) 2005 Pearson Education, Inc. All rights reserved Chapter 1 Introduction to.
got ? Research Project – April 1998 Hang Xia, Mark Wang, Richard S. Chang Updated: R Norman, August 1999.
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, 4E
Java Programming, 3e Concepts and Techniques Chapter 1 An Introduction to Java and Program Design.
For more Lectures and Notes Visit
1 Chapter 3 Programs and Packages. 2 Java Virtual Machine (JVM) Java programs execute on the JVM. The JVM is a virtual rather than a physical machine,
1 Java Server Pages Can web pages be created specially for each user? What part does Java play?
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.
01 Introduction to Java Technology. 2 Contents History of Java What is Java? Java Platforms Java Virtual Machine (JVM) Java Development Kit (JDK) Benefits.
LESSON 1 INTRODUCTION Compiled By: Edwin O. Okech [Tutor, Amoud University] JAVA PROGRAMMING.
Marlene Galea.  The JDK (Java Development Kit)  An IDE (Integrated Development Environment) ◦ Different IDEs include:  JCreator  NetBeans  BlueJ.
Sadegh Aliakbary Sharif University of Technology Fall 2011.
Getting Started What is Java? A programming language –Fully buzzword-compliant: A simple, object oriented, distributed, interpreted, robust, secure,
Advanced OOP MCS-3 OOP BSCS-3 Lecture # 1
A Java Virtual Machine (JVM) enables a set of computer software programs and data structures to use a virtual machine model for the execution of other.
BASIC JAVA PROGRAMMING TUTORIAL. History  James Gosling and Sun Microsystems  Oak  Java, May 20, 1995, Sun World  Hot Java –The first Java-enabled.
Java Programming, 2E Introductory Concepts and Techniques Chapter 1 An Introduction to Java and Program Design.
CSC 142 A 1 CSC 142 Introduction to Java [Reading: chapter 0]
Chapter 1 Coding Introduction.
CSCI 224 Introduction to Java Programming. Course Objectives  Learn the Java programming language: Syntax, Idioms Patterns, Styles  Become comfortable.
CMSC 202 Computer Science II for Majors Object-Oriented Programming.
Liang, Introduction to Java Programming, Sixth Edition, (c) 2007 Pearson Education, Inc. All rights reserved Programming Languages Machine.
Liang, Introduction to Java Programming, Eighth Edition, (c) 2011 Pearson Education, Inc. All rights reserved Chapter 1 Introduction to Computers,
1.  At the end of this slide, student can:  Explore tools, features, properties and interface of the Textpad.  Creating a new project.  Open and run.
Chapter 34 Java Technology for Active Web Documents methods used to provide continuous Web updates to browser – Server push – Active documents.
1 Module Objective & Outline Module Objective: After completing this Module, you will be able to, appreciate java as a programming language, write java.
1.8History of Java Java –Based on C and C++ –Originally developed in early 1991 for intelligent consumer electronic devices Market did not develop, project.
Liang, Introduction to Java Programming, Sixth Edition, (c) 2007 Pearson Education, Inc. All rights reserved Chapter 1 Introduction to.
Jaeki Song ISQS6337 JAVA Lecture 03 Introduction to Java -The First Java Application-
Chapter 1: Introduction to Programs, and Java 1. Objectives To review programs (§ ). To understand the relationship between Java and the World Wide.
Introduction to Java Programming with Forte Y. Daniel Liang.
Java Programming, 2E Introductory Concepts and Techniques Chapter 1 An Introduction to Java and Program Design.
Session 1 Introduction to Java. Objectives Java Simplified / Session 1 / 2 of 32 Explain the history of Java Explain Java in brief List the types of Java.
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.
J ava P rogramming: From Problem Analysis to Program Design, From Problem Analysis to Program Design, Second Edition Second Edition D.S. Malik D.S. Malik.
JAVA Programming “When you are willing to make sacrifices for a great cause, you will never be alone.” Instructor: รัฐภูมิ เถื่อนถนอม
Application Architecture Using Java Hong Li. Introduction Developed by a team led by James Gosling at Sun Microsystem. Originally called Oak, designed.
What is Java? Object Oriented Programming Language Sun Microsystems “Write Once, Run Everywhere” Bytecode and Virtual Machine Java Platform (Java VM and.
Liang, Introduction to Java Programming, Seventh Edition, (c) 2009 Pearson Education, Inc. All rights reserved Chapter 1 Introduction to.
Java Programming: Advanced Topics1 Introduction to Advanced Java Programming Chapter 1.
1 Introduction to Java. 2 * 10% Assignments/ class participation * 10% Pop Quizzes * 05% Attendance * 25% Mid Term * 50% Final Term.
Mobile Programming Mobile Programming - Ordibehesht Ordibehesht 1390.
Introduction to Programming 1 1 2Introduction to Java.
20-753: Fundamentals of Web Programming Copyright © 1999, Carnegie Mellon. All Rights Reserved. 1 Lecture 15: Java Basics Fundamentals of Web Programming.
Liang, Introduction to Java Programming, Ninth Edition, (c) 2013 Pearson Education, Inc. All rights reserved. 1 Chapter 1 Introduction.
Introduction to JAVA Programming
Introduction to Java Programming, 4E Y. Daniel Liang.
Sung-Dong Kim, Dept. of Computer Engineering, Hansung University Java - Introduction.
Fundamental of Java Programming (630002) Unit – 1 Introduction to Java.
Introduction to Algorithm. What is Algorithm? an algorithm is any well-defined computational procedure that takes some value, or set of values, as input.
Applications Active Web Documents Active Web Documents.
Object Oriented Programming in
Before You Begin Nahla Abuel-ola /WIT.
Chapter 1 Introduction to Computers, Programs, and Java
Introduction to Advanced Java Programming
Java programming lecture one
Introduction Enosis Learning.
Introduction Enosis Learning.
Advanced Programming Fall 2017.
(Computer fundamental Lab)
Java History, Editions, Version Features
By Rajanikanth B Overview Of Java By Rajanikanth B
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:

L EC. 01: J AVA FUNDAMENTALS Fall Java Programming

C ONTENTS  Brief history of Java  Features of Java  JDK, JRE, JVM and bytecode  Developing and executing Java programs  Basic syntax and semantics of Java Fall Java Programming

J AVA TECHNOLOGY  Java technology is a software-only platform running on top of other hardware-based platforms.  Including  Java programming language A general-purpose, concurrent, strongly typed, class-based object- oriented language  Tools Compiler, debugger, documentation tool, launcher, web service, …  Application Programming Interfaces (APIs) Large amount ready-made software components to make programming easier  Deployment methodology Java Web Start, Java plug-in  Integration libraries JDBC, JNDI, Java RMI  Java Virtual Machine (JVM) Fall Java Programming

Fall Java Programming 3

P AST OF J AVA  Conceived by a design team of Sun Microsystems in 1991  Original language goal  A platform-independent language that could be used to create software to be embedded in various consumer electronic devices  Switching to Internet programming with the emergence of the World Wild Web  The syntax and object model of Java inherits from C and C++ respectively. Fall Java Programming

F EATURES OF J AVA INCLUDING …  Highly portable  Highly dynamic  Suitable for distributed architectures  Highly secure  Object-oriented  Robust  Hybrid of compiling and interpreting  Multithreaded Fall Java Programming The secret to make Java platform- independent and secure is the JVM (Java Virtual Machine) and Java bytecode.

T YPES OF J AVA PROGRAMS  Based on the usages and runtime environments, Java programs are classified as:  Stand-alone programs  Java applets  Java servelets  JavaBeans  The syntactic and semantic rules are the same for these four types of Java programs.  The differences among them are the APIs required to develop and execute programs. Fall Java Programming

S TAND - ALONE J AVA PROGRAMS  A stand-alone Java program (also called Java application) can be only executed on the computer where the program is stored.  Two types of stand-alone programs  Console mode  Window mode Fall Java Programming

J AVA APPLETS  An applet is a special kind of Java program that is designed to be transmitted over the Internet and automatically executed by a Java-compatible web browser.  An applet is downloaded automatically when users click hyperlink containing applets, without further interaction with the user.  Applets are small programs which are typically used to display data provided by the server, handle user input, or provide simple functions, such as a loan calculator, that execute locally, rather than on the server.  Applets greatly reduce the load of servers. Fall Java Programming

J AVA SERVELETS  A java servlet runs within a Web server which receives and responds to requests from Web clients, where the requests are transmitted via HTTP (Hyper Text Transport Protocol). Fall Java Programming

J AVABEANS  A bean is a Java class with method names that follow the JavaBeans API specifications.  Since all the beans follow the same specifications, they are easily to be integrated with other programs.  For example, all the Java classes supported by IDE (Integrated Development Environment), such as Eclipse and NetBeans, are Java beans.  A bean is used as a help class, instead of a driven class.  A help class is used to provide specific functions such as JButton, JFrame.  A driven class is used to control the process of a task. Fall Java Programming

JDK  Java Development Kit (JDK) is a collection of software which constructs an environment for developing Java programs.  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. Fall Java Programming

JRE  The JRE (Java Runtime Environment) is a collection of software which creates an environment for running Java program.  The JRE consists of the Java Virtual Machine (JVM), Java platform core classes, and supporting Java platform libraries. Fall Java Programming

J AVA BYTECODE AND JVM  Java bytecode is a intermediate language, instead of the executable code of any specific platform, generated from Java compiler.  Currently, some other languages, such as Python and Ada, can be translated into Java bytecode.  JVM is a virtual machine (i.e. a software implemented abstraction of a specific underlying platform) which supports the running environment for interpreting Java bytecodes.  JVMs may be developed by any company as long as it adhere to the JVM specification published by Oracle Corporation and to related contractual obligations.  To execute Java bytecodes, they are either interpreted by JVM or translated to native language, by using JIT (Just-In-Time) compiler, for execution. Fall Java Programming

Fall Java Programming 14 The output of the compiler is.class file