LESSON 1 INTRODUCTION Compiled By: Edwin O. Okech [Tutor, Amoud University] JAVA PROGRAMMING.

Slides:



Advertisements
Similar presentations
1 G54PRG Programming Lecture 1 Amadeo Ascó Adam Moore G54PRG Programming Lecture 1 Amadeo Ascó 3 Java Programming Language.
Advertisements

Introduction To Java Objectives For Today â Introduction To Java â The Java Platform & The (JVM) Java Virtual Machine â Core Java (API) Application Programming.
CSCE 145: Algorithmic Design I Chapter 1 Intro to Computers and Java Muhammad Nazmus Sakib.
Liang, Introduction to Java Programming, Sixth Edition, (c) 2005 Pearson Education, Inc. All rights reserved Chapter 1 Introduction to.
Java: History and Introduction (Lecture # 1). History… Java – Based on C and C++ – Developed in 1991 for intelligent consumer electronic devices – Green.
1 Fall 2008ACS-1903 Chapter 1 Topics Java History Java Programs Why Program? Computer Systems: Hardware and Software Programming Languages What Is a Program.
For more Lectures and Notes Visit
JAVA: An Introduction to Problem Solving & Programming, 6 th Ed. By Walter Savitch ISBN © 2012 Pearson Education, Inc., Upper Saddle River,
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.
CMSC 202 Computer Science II for Majors Fall 2009 Introduction.
Sadegh Aliakbary Sharif University of Technology Fall 2011.
Advanced OOP MCS-3 OOP BSCS-3 Lecture # 1
BASIC JAVA PROGRAMMING TUTORIAL. History  James Gosling and Sun Microsystems  Oak  Java, May 20, 1995, Sun World  Hot Java –The first Java-enabled.
BA22001 Introduction to Java Instructor: Jingwu He.
CSC 142 A 1 CSC 142 Introduction to Java [Reading: chapter 0]
Chapter 1 Coding Introduction.
Parts of a Computer Why Use Binary Numbers? Source Code - Assembly - Machine Code.
S.W. Ma/CIM/LWL41211/2 Prog. IIA Page 1 HKIVE (Lee Wai Lee Campus) Department of CIM Course : Year 2 Module : Programming IIA Textbook : Introduction.
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.
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.
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,
Liang, Introduction to Java Programming, Eighth Edition, (c) 2011 Pearson Education, Inc. All rights reserved Chapter 1 Introduction to Programs,
J2ME Presented by May Sayed & Menna Hawash. Outline Introduction “Java Technology” Introduction “What is J2ME?” J2ME Architecture J2ME Core Concepts 
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.
Computer Programming A program is a set of instructions a computer follows in order to perform a task. solve a problem Collectively, these instructions.
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.
© 2012 Pearson Education, Inc. All rights reserved. 1-1 Why Java? Needed program portability – Program written in a language that would run on various.
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.
Chapter 1 Section 1.1 Introduction to Java Slides prepared by Rose Williams, Binghamton University Kenrick Mock, University of Alaska Anchorage.
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.
National Taiwan University Department of Computer Science and Information Engineering National Taiwan University Department of Computer Science and Information.
4-Nov-15 Air Force Institute of Technology Electrical and Computer Engineering Object-Oriented Programming Design Topic 1: The Java Environment Maj Joel.
 Programming Language  Object Oriented Programming  JAVA – An Introduction  JAVA Milestones  JAVA Features.
Liang, Introduction to Java Programming, Sixth Edition, (c) 2007 Pearson Education, Inc. All rights reserved Chapter 1 Introduction to.
Java and its Evolution. Contents Java Introduction Java Features How Java Differs from other OO languages Java and the World Wide Web Java Environment.
Application Architecture Using Java Hong Li. Introduction Developed by a team led by James Gosling at Sun Microsystem. Originally called Oak, designed.
Introduction Mehdi Einali Advanced Programming in Java 1.
Liang, Introduction to Java Programming, Seventh Edition, (c) 2009 Pearson Education, Inc. All rights reserved Chapter 1 Introduction to.
© 2012 Pearson Education, Inc. All rights reserved types of Java programs Application – Stand-alone program (run without a web browser) – Relaxed.
Today… “Hello World” ritual. Brief History of Java & How Java Works. Introduction to Java class structure. But first, next slide shows Java is No. 1 programming.
Introduction to Java Programming. 2 Chapter 1 Introduction to Java and Forte F What Is Java? F Getting Started With Java Programming –Create, Compile.
1 Introduction to Java. 2 * 10% Assignments/ class participation * 10% Pop Quizzes * 05% Attendance * 25% Mid Term * 50% Final Term.
Liang, Introduction to Java Programming, Ninth Edition, (c) 2013 Pearson Education, Inc. All rights reserved. 1 Chapter 1 Introduction.
Liang, Introduction to Java Programming, Sixth Edition, (c) 2007 Pearson Education, Inc. All rights reserved Chapter 1 Introduction to Computers,
BlueJ X ICSE Syllabus. Board Pattern THEORY (100 marks) PRACTICAL (100 marks) PROJECT (50 marks) ASSIGNMENTS (50 marks)
Introduction to JAVA Programming
Introduction to Java Programming, 4E Y. Daniel Liang.
SESSION 1 Introduction in Java. Objectives Introduce classes and objects Starting with Java Introduce JDK Writing a simple Java program Using comments.
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.
Chapter 1 Coding Introduction.
Object Oriented Programming in
Chapter 1 Introduction to Computers, Programs, and Java
Chapter 1 FOUNDATIONS OF JAVA
PROGRAMMING IN JAVA. INTRODUCTION TO JAVA  Java is a general purpose computer programming language that is concurrent, class-based, object- oriented.
Chapter 1 Introduction to Computers, Programs, and Java
Chapter 1 Coding Introduction.
Advanced Programming Fall 2017.
Java History, Editions, Version Features
By Rajanikanth B Overview Of Java By Rajanikanth B
CSC 142 Introduction to Java [Reading: chapters 1 & 2]
Outcome of the Lecture Upon completion of this lecture you will be able to understand Fundamentals and Characteristics of Java Language Basic Terminology.
from Lutz Dietrich and Hans Kluge
Presentation transcript:

LESSON 1 INTRODUCTION Compiled By: Edwin O. Okech [Tutor, Amoud University] JAVA PROGRAMMING

Outline Compiled By: Edwin O. Okech [Tutor, Amoud University] The origin of Java. The Java history. The capabilities of Java programming language. The Java language specifications The Java API The Java development tools How does byte code makes Java a portable language?

Origin of Java Compiled By: Edwin O. Okech [Tutor, Amoud University] In 1991, Java was developed by a team led by James Gosling and Patrick Naughton at Sun Microsystems. Originally named Oak ‐ Gosling liked the look of an oak tree that was outside his window at Sun.

History of Java Compiled By: Edwin O. Okech [Tutor, Amoud University] The challenge: For use in embedded consumer electronic appliances ‐ the cable TV switchboxes.  Different manufacturers may choose different central processing units (CPUs).  The cable TV switchboxes devices do not have a lot of power or memory. The language;  Had to be small and generate very tight code.  Not be tied to any single architecture.

History of Java Compiled By: Edwin O. Okech [Tutor, Amoud University] A two ‐ step Java translation process have been developed:  Programs written in Java were translated into an intermediate language, known the byte code.  Then, the byte code would be translated into machine language. In 1994, Java was used to develop a Web browser, named HotJava.  The browser able to download and run small Java programs over the internet, known as the applets.  Capable to display animation and interact with the user. In 1995, Netscape incorporated Java technology into its Netscape browser.  Then, other Internet companies followed...

Java Capabilities Compiled By: Edwin O. Okech [Tutor, Amoud University] Java is a full ‐ featured and general ‐ purpose programming language that is capable of developing a robust mission ‐ critical applications for:  Desktops  Servers  Mobile devices The Java programming language is a relatively highlevel language, class ‐ based and object ‐ oriented.

Java Capabilities Compiled By: Edwin O. Okech [Tutor, Amoud University] Java running on the desktop is called application. Java running on the Internet is called applets. Java developed on the server ‐ side is called servlet.

Java Language Specification Compiled By: Edwin O. Okech [Tutor, Amoud University] Defines the Java standard and the technical definition of the language.  includes the syntax and semantics of the language.  url: java.sun.com/docs/books/jls

Java Application Programming Interface Compiled By: Edwin O. Okech [Tutor, Amoud University] Java application program interface (API) contains the predefined classes and interfaces for developing Java programs. In 1995, Java 1.0 was introduced.  With 211 classes and interfaces. In December 1998, Java 2 platform was announced.  Applies to current Java technology.

Java API Compiled By: Edwin O. Okech [Tutor, Amoud University]

Java API Compiled By: Edwin O. Okech [Tutor, Amoud University] There are 3 editions of the Java API:  Java 2 standard edition (J2SE) Client ‐ side standalone applications or applets.  Java 2 Enterprise Edition (J2EE) Server ‐ side applications, such as Java servlets and  JavaServer Pages. Java 2 Micro Edition (J2ME)  Mobile devices, such as cell phones or pda.

Demonstrate how to link to Java API Compiled By: Edwin O. Okech [Tutor, Amoud University] J2SE versions and JDK There are many versions of J2SE.  Sun releases each version of J2SE with a Java Development toolkit (JDK). JDK consists of a set of separate programs for developing and testing Java programs.  Each of which is invoked from a command line. For J2SE 5.0, the Java development toolkit is called JDK 5 – formerly was known as JDK1.5.  The latest version is J2SE 6.

Java Development Tools Compiled By: Edwin O. Okech [Tutor, Amoud University] A software that provides an integrated development environment (IDE) for rapidly developing Java programs. Java development tools on the market:  NetBeans by Sun (open source)  JBuilder by Borland  Eclipse by IBM (open source) Other useful tools:  Code warrior by Metroworks  TextPad Editor  JCreator LE  Jedit  BlueJ

Byte-code The Java Virtual Machine Compiled By: Edwin O. Okech [Tutor, Amoud University] The Java compiler translates Java programs into byte ‐ code.  Once compiled to byte ‐ code, a Java program can be used on any computer, making it very portable machine. The Java Virtual Machine (JVM) translates the byte code into machine language.

Portable Compiled By: Edwin O. Okech [Tutor, Amoud University] Portable means that a program may be written on one type of computer and then run on a wide variety of computers, with little or no modification. Java byte code runs on the JVM and not on any particular CPU; therefore, compiled Java programs are highly portable. JVMs exist on many platforms:  Windows  Macintosh  Linux

Portability Compiled By: Edwin O. Okech [Tutor, Amoud University] Portability Byte Code JVM For Windows JVM For Linux JVM For Macintosh JVM For Unix