Intro to Programming - Java (CH 1)

Introduction to Java, Reference:  Starting Out with Java From Control Structures through Data Structures (Tony Gaddis & Godfrey), Chapter 1

57 cards   |   Total Attempts: 191
  

Cards In This Set

Front Back
A program
A program is a set of instructions that a computer follows in order to perform a task.
Algorithm
A set of well defined steps to completing a task.
Why were programming languages invented?
To ease the task of programming.
What is programming language?
A vocabulary and set of grammatical rules for instructing a computer to perform specific tasks.
Two kinds of programming language...
• Low level language • High level language
What are low level programming languages?
Answer 6
They are very close to machine languages, hard to read and understand. • Ex: Assembly language
What are high level programming languages?
Answer 7
They are close to human language, easy to understand and implement algorithm. Ex: Java, C, C++ If a > b print(“a is greater than b”)
Common programming language elements in Java
• Key words • Operators • Punctuation • Programmer defined identifiers • Strict syntactic rules.
Who created Java
Sun Microsystems
What is Java?
Java is a high level programming language that derives much of its syntax from C and C++ but has a simpler object model.
Primary goal (1) in the creation of the Java language:
1. Use of object-oriented programming methodology.
Two types of Java programs?
• Applications • Applets
Applications
• Stand-alone programs that run without the aid of a web browser. • Relaxed security model since the user runs the program locally.
Applets
• Small applications, require the use of a Java enabled web browser to run. • Enhanced security model, applet runs itself from a webpage.
Source code
Programming statements written by the programmer