JEDI Slides Intro1 Chapter02 Introduction to Java

Download JEDI Slides Intro1 Chapter02 Introduction to Java

Post on 07-Apr-2018

218 views

Category:

Documents

0 download

Embed Size (px)

TRANSCRIPT

<ul><li><p>8/4/2019 JEDI Slides Intro1 Chapter02 Introduction to Java</p><p> 1/12</p><p>Introduction to Programming 1 1</p><p>2 Introduction to Java</p></li><li><p>8/4/2019 JEDI Slides Intro1 Chapter02 Introduction to Java</p><p> 2/12</p><p>Introduction to Programming 1 2</p><p>Topics</p><p> Java Background</p><p> A little Bit of History</p><p> What is Java Technology?</p><p> Phases of a Java Program</p></li><li><p>8/4/2019 JEDI Slides Intro1 Chapter02 Introduction to Java</p><p> 3/12</p><p>Introduction to Programming 1 3</p><p>Java Background: History Java</p><p> was created in 1991</p><p> by James Gosling et al. of Sun Microsystems.</p><p> Initially called Oak, in honor of the tree outside Gosling's window, its name</p><p>was changed to Java because there was already a language called Oak.</p></li><li><p>8/4/2019 JEDI Slides Intro1 Chapter02 Introduction to Java</p><p> 4/12</p><p>Introduction to Programming 1 4</p><p>Java Background: History Java</p><p> The original motivation for Java: the need for platform independentlanguage that could be embedded in various consumer electronic productslike toasters and refrigerators.</p><p> One of the first projects developed using Java: a personal hand-heldremote control named Star 7.</p><p> At about the same time, the World Wide Web and the Internet were gainingpopularity. Gosling et. al. realized that Java could be used for Internetprogramming.</p></li><li><p>8/4/2019 JEDI Slides Intro1 Chapter02 Introduction to Java</p><p> 5/12</p><p>Introduction to Programming 1 5</p><p>Java Background:</p><p>What is Java Technology? The Java technology is:</p><p> A programming language</p><p> A development environment</p><p> An application environment</p><p> A deployment environment</p></li><li><p>8/4/2019 JEDI Slides Intro1 Chapter02 Introduction to Java</p><p> 6/12</p><p>Introduction to Programming 1 6</p><p>Java Technology:</p><p>Programming Language As a programming language, Java can create all kinds of</p><p>applications that you could create using any conventionalprogramming language.</p></li><li><p>8/4/2019 JEDI Slides Intro1 Chapter02 Introduction to Java</p><p> 7/12</p><p>Introduction to Programming 1 7</p><p>Java Technology:</p><p>A Development Environment As a development environment, Java technology provides</p><p>you with a large suite of tools:</p><p> A compiler</p><p>An interpreter A documentation generator</p><p> A class file packaging tooland so on...</p></li><li><p>8/4/2019 JEDI Slides Intro1 Chapter02 Introduction to Java</p><p> 8/12</p><p>Introduction to Programming 1 8</p><p>Java Technology:An Application and Runtime Environment</p><p> Java technology applications are typically general-purposeprograms that run on any machine where the Java runtimeenvironment (JRE) is installed.</p><p> There are two main deployment environments:</p><p>1. The JRE supplied by the Java 2 Software Development Kit (SDK)contains the complete set of class files for all the Java technologypackages, which includes basic language classes, GUI component</p><p>classes, and so on.2. The other main deployment environment is on your web browser.</p><p>Most commercial browsers supply a Java technology interpreter andruntime environment.</p></li><li><p>8/4/2019 JEDI Slides Intro1 Chapter02 Introduction to Java</p><p> 9/12</p><p>Introduction to Programming 1 9</p><p>Phases of a Java Program</p><p> The following figure describes the process of compiling andexecuting a Java program</p></li><li><p>8/4/2019 JEDI Slides Intro1 Chapter02 Introduction to Java</p><p> 10/12</p><p>Introduction to Programming 1 10</p><p>Phases of a Java Program</p><p> Definitions:</p><p> Bytecode</p><p> a special machine language that can be understood by the Java Virtual Machine(JVM).</p><p> is independent of any particular computer hardware, so any computer with a Javainterpreter can execute the compiled Java program, no matter what type ofcomputer the program was compiled on.</p><p> The Java Virtual Machine</p><p> is an imaginary machine that is implemented by emulating software on a real</p><p>machine. provides the hardware platform specifications to which you compile all Java</p><p>technology code.</p><p> This specification enables the Java software to be platform-independent becausethe compilation is done for a generic machine known as the JVM.</p></li><li><p>8/4/2019 JEDI Slides Intro1 Chapter02 Introduction to Java</p><p> 11/12</p><p>Introduction to Programming 1 11</p><p>Phases of a Java Program</p></li><li><p>8/4/2019 JEDI Slides Intro1 Chapter02 Introduction to Java</p><p> 12/12</p><p>Introduction to Programming 1 12</p><p>Summary</p><p> Java Background</p><p> History</p><p> Java Technology</p><p>A programming language A development environment</p><p> An application environment</p><p> A deployment environment</p><p> Phases of a Java Program</p><p> Write, compile, run</p><p> Defined:</p><p> Bytecodes</p><p> Java Virtual Machine (JVM)</p></li></ul>