Chapter 1: Creating Java Programs Flashcards
Computer program
A set of written instructions that tells the computer what
to do
Machine language
– The most basic circuitry-level language
– A low-level programming language
High-level programming language
Allows you to use a vocabulary of reasonable terms
Syntax
A specific set of rules for the language
Program statements
– Similar to English sentences
– Commands to carry out program tasks
Compiler
Translates language statements into machine code
Syntax error
Misuse of language rules
Object-oriented programs
– Create classes
• Blueprints for an object
– Create objects from classes
– Create applications
Object-oriented programming was used most frequently for
three major types of applications
– Development of Scientific Applications
– Web, Mobile, Game, and Enterprise Applications
– Graphical user interfaces (GUIs)
Class
Describes objects with common properties
Objects
Specific, concrete instances of a class
Method
A self-contained block of program code that carries out an
action
Encapsulation
Conceals internal values and methods from outside
sources
Java
– Developed by Sun Microsystems
– An object-oriented language
– General-purpose
– Advantages
• Security features
• Architecturally neutral
– Can be run on a wide variety of computers
– Does not execute instructions on the computer directly
– Runs on a hypothetical computer known as a Java Virtual
Machine (JVM)
Source code
Programming statements written in high-level
programming language