Presentation is loading. Please wait.

Presentation is loading. Please wait.

Java for students 4 th Edition Pearson-Prentice Hall by Douglas Bell and Mike Parr The background to Java Chapter 1.

Similar presentations


Presentation on theme: "Java for students 4 th Edition Pearson-Prentice Hall by Douglas Bell and Mike Parr The background to Java Chapter 1."— Presentation transcript:

1 Java for students 4 th Edition Pearson-Prentice Hall by Douglas Bell and Mike Parr The background to Java Chapter 1

2 The History of Java 1950s FORTRAN, COBOL 1960s ALGOL 60, CPL, BCPL 1970s C, UNIX 1980s C++ 1990s Java (Oak)

3 Main Features of Java Code similar to C++ Designed for the Internet Portable – can be run on any compiler Java applets are written to be secure –CERT has some advisories about Java Applets) Sun allows for free downloads Browsers are free and Java enabled

4 What is a program? Instructions (see shampoo bottle) A recipe A musical score

5 A computer obeys instructions Input/output data Calculations Graphics Response to user input

6 Programmers select from a list of possible instructions that carry out a specific tasks Music – repeats possible, provides a notation for composer where/when to do so Program sections may need to be repeated and notation provides for that Subtasks – some recipes need tasks to be done before main task may be completed

7 Java methods (subtasks) may be called by main method or another method when needed

8 A program may consist of: Sequences Repetition Selection Methods Ready-made objects Objects you write yourself


Download ppt "Java for students 4 th Edition Pearson-Prentice Hall by Douglas Bell and Mike Parr The background to Java Chapter 1."

Similar presentations


Ads by Google