1 Chapter 1 Introduction to Java. 2 History of Java Java Originally for _________________________ devices Then used for creating Web pages with __________________________.

Slides:



Advertisements
Similar presentations
What is a Computer Program? For a computer to be able to do anything (multiply, play a song, run a word processor), it must be given the instructions.
Advertisements

© Paradigm Publishing, Inc Excel 2013 Level 2 Unit 2Managing and Integrating Data and the Excel Environment Chapter 7Automating Repetitive Tasks.
 2005 Pearson Education, Inc. All rights reserved Introduction.
Lesson One: The Beginning Chapter 2: Processing Learning Processing Daniel Shiffman Presentation by Donald W. Smith Graphics from built-in help reference.
Visual and Internet Programming using JAVA
Object Orientated Programming
Java: History and Introduction (Lecture # 1). History… Java – Based on C and C++ – Developed in 1991 for intelligent consumer electronic devices – Green.
1 Lecture 1  Getting ready to program  Hardware Model  Software Model  Programming Languages  The C Language  Software Engineering  Programming.
Java Environment (CSS444)
 2003 Prentice Hall, Inc. All rights reserved. 1 Chapter 1 – Introduction to Computers, the Internet, and the Web Outline 1.1 Introduction 1.2 What Is.
Introduction to Computer Programming CSC 1401: Introduction to Programming with Java Lecture 2 Wanda M. Kunkle.
 2002 Prentice Hall. All rights reserved. Week 1 - Introduction to Object- Oriented Programming Outline 1.1 Machine Languages, Assembly Languages and.
Introduction to Java.
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.
Creating a Console Application with Visual Studio
Microsoft Visual Basic 2005 CHAPTER 12 Cell Phone Applications and Web Services.
 2003 Prentice Hall, Inc. All rights reserved. Chapter 1 – Introduction to Computers, the Internet, and the Web Outline 1.1 Introduction 1.2 What Is a.
Computer Programming-1 CSC 111 Chapter 1 : Introduction.
CCSA 221 Programming in C CHAPTER 2 SOME FUNDAMENTALS 1 ALHANOUF ALAMR.
1 Chapter 1 - Introduction to Computers, the Internet, and the World Wide Web Outline 1.1Introduction 1.2What Is a Computer? 1.3Computer Organization 1.4Evolution.
1 1 1 Introduction to Java. 2 History of Java Java – Originally for intelligent consumer-electronic devices – Then used for creating Web pages with dynamic.
 2005 Pearson Education, Inc. All rights reserved. 1 Introduction & The Java Virtual Machine Small Java Chapter 1 1.
NOTE: To change the image on this slide, select the picture and delete it. Then click the Pictures icon in the placeholder to insert your own image. WEB.
(C) 2010 Pearson Education, Inc. All rights reserved.  Java programs normally go through five phases  edit  compile  load  verify  execute.
 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)
Copyright © 2012 Pearson Education, Inc. Chapter 1: Introduction to Computers and Programming.
 2005 Pearson Education, Inc. All rights reserved Introduction to Computers, the Internet and the World Wide Web.
Computer Programming A program is a set of instructions a computer follows in order to perform a task. solve a problem Collectively, these instructions.
 2002 Prentice Hall. All rights reserved. Chapter 1 – Introduction to Computers, the Internet, and the Web Outline 1.1 Introduction 1.2 What Is a Computer?
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.
Creating a Project with C++ Builder
NOTE: To change the image on this slide, select the picture and delete it. Then click the Pictures icon in the placeholder to insert your own image. WEB.
© 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.
Just as there are many human languages, there are many computer programming languages that can be used to develop software. Some are named after people,
9/2/ CS171 -Math & Computer Science Department at Emory University.
1 COMP 241: Object-Oriented Programming with Java Fall 2004 Lecture 1 September 27, 2004 Serdar Taşıran.
 2000 Prentice Hall, Inc. All rights reserved. 1 Chapter 1 - Introduction to Computers, the Internet, and the World Wide Web Outline 1.1Introduction 1.2What.
Liang, Introduction to Java Programming, Sixth Edition, (c) 2007 Pearson Education, Inc. All rights reserved Chapter 1 Introduction to.
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.
Chapter 1 Computers, Compilers, & Unix. Overview u Computer hardware u Unix u Computer Languages u Compilers.
© 2012 Pearson Education, Inc. All rights reserved types of Java programs Application – Stand-alone program (run without a web browser) – Relaxed.
Lecture Set 2 Part A: Creating an Application with Visual Studio – Solutions, Projects, Files 8/10/ :35 PM.
1 Introduction Read D&D Sec 1.8; Sec 1.13 THE Java tutorial -
1 Chapter 1 Java –Originally for intelligent consumer-electronic devices –Then used for creating Web pages with dynamic content –Now also used for: Develop.
1 1 1 Introduction to Java. 2 History of Java Java – Originally for intelligent consumer-electronic devices – Then used for creating Web pages with dynamic.
Chapter 1: Introduction to Computers and Programming.
Liang, Introduction to Java Programming, Sixth Edition, (c) 2007 Pearson Education, Inc. All rights reserved Chapter 1 Introduction to Computers,
Introduction to JAVA Programming
Software Engineering Algorithms, Compilers, & Lifecycle.
Introduction to Java. 2 A Brief History of OOP and Java Early high level languages –FORTRAN, COBOL, LISP More recent languages –BASIC, Pascal, C, Ada,
McGraw-Hill/Irwin The Interactive Computing Series © 2002 The McGraw-Hill Companies, Inc. All rights reserved. Microsoft Excel 2002 Using Macros Lesson.
Chapter 1 – Introduction to Computers, the Internet, and the Web Outline 1.1 Introduction 1.2 What Is a Computer? 1.3 Computer Organization 1.4 Evolution.
CS 201 Lecture 1 (b) Using an IDE Tarik Booker CS 201: Introduction to Programming California State University, Los Angeles.
Microsoft Office XP Illustrated Introductory, Enhanced Started with PowerPoint 2002 Getting.
Chapter 11 Enhancing an Online Form and Using Macros Microsoft Word 2013.
Introduction to Computers, the Internet and the World Wide Web
Chapter 1 – Introduction to Computers, the Internet, and the Web
CSCI-235 Micro-Computer Applications
Lecture 1: Introduction to JAVA
1. Introduction to Visual Basic
Java programming lecture one
Chapter 1 Introduction to Computers, Programs, and Java
Chapter 1 – Introduction to Computers, the Internet, and the Web
Chapter 1 – Introduction to Computers, the Internet, and the Web
Introduction to Computers, the Internet and the World Wide Web
Creating the First Program
Chapter 1 – Introduction to Computers, the Internet, and the Web
Computer Programming-1 CSC 111
Presentation transcript:

1 Chapter 1 Introduction to Java

2 History of Java Java Originally for _________________________ devices Then used for creating Web pages with __________________________ Now also used to: Develop large-scale ___________ applications Enhance WWW server functionality Provide applications for consumer devices (cell phones, etc.)

3 Java Class Libraries Classes Include methods that ___________________ Return _______________ after task completion Used to build Java programs Java provides class libraries Known as Java APIs _____________________ _________________ _________________

4 FORTRAN, COBOL, Pascal and Ada FORTRAN FORmula __________________ COBOL COmmon _______________ Oriented Language Pascal Structured programming ____________ Multitasking

5 BASIC, Visual Basic, Visual C++, C# and.NET BASIC Beginner’s _____________ Symbolic Instruction _______________.NET.NET platform ______________ Basic.NET Based on BASIC Visual C++ Based on C++ C# Based on _____________________

6 Typical Java Development Environment Java programs normally undergo five phases ________________ Programmer writes program (and stores program on disk) Compile Compiler creates _______________ from program Load Class loader stores bytecodes in memory Verify Bytecode Verifier confirms bytecodes do not violate _______________________________ Execute JVM translates bytecodes into ____________________

7 Fig. 1.1 Typical Java development environment.

8 Creating a Program with JCreator Click on the JCreator Icon IDE window appears

9 Creating a Program with JCreator Click on File, New, then Project Project Wizard appears Choose Java Application template

10 Creating a Program with JCreator Give the project a ____________ Then click Next

11 Creating a Program with JCreator You will want the JDK version 1.5 This tab is where you can specify hsa library At this point you can click on Finish

12 Creating a Program with JCreator Now we create our class (the program) with File, New, and Class

13 Creating a Program with JCreator The wizard creates a template. Now complete the program with the required commands.

14 Creating a Program with JCreator Run the compiler with Build, and CompileFile

15 Creating a Program with JCreator To run the compiled program click on Build, and ExecuteFile Program runs in separate window

16 Programming with "Ready to Program" Find the "Ready" option on the program menu or click on the "Ready" icon

17 Programming with "Ready to Program" An empty editor window appears

18 Java Programs A Java program consists of one or more classes

19 Creating a Java Application The "Ready" environment will give you skeleton or boilerplate format for programs Click on File, New, and HSA Console option A dialog box asks for the name of the class

20 Creating a Java Application The appropriate boilerplate text appears in the edit window – note the color coding

21 Creating a Java Application Fill in the necessary commands Save the program

22 Creating a Java Application To run a Java program Press the Run button or Press Ctrl+R or Press F1 The console program shows a console window

23 Creating a Java Application Make sure to save the program before quitting The "Ready" environment will remind you To exit the "Ready" environment Click the X close or Choose File, Exit or Use Ctrl-Q

24 Creating a Java Application Errors in the program Syntax errors are found for you by the compiler

25 Why Different IDEs? Which one you use depends on what you are doing In class the Ready to Program IDE is __________________, “quick and dirty” But … it does not support JDK 5.0 ____________________ supports JDK 5.0 Eclipse a bit more complicated, but does a bit more found to be a bit balky with some elements of JDK 5.0