1.5 What is a Program Made of?

Ace your homework & exams now with Quizwiz!

What happens to a variable's current value in memory when a new value is stored in the same storage location?

The new value will take the place of the variable's current value.

The term _______ means that a Java program can be written on one type of computer and then run on many other types of systems.

portability

Interpreter

reads Java byte code instructions and executes them as they are read

The code that a programmer writes is called _____ code.

source

The rules that govern the correct order and usage of the elements of a language are called the _____ of the language.

syntax

If a source file has no _______ errors, the compiler will translate it to byte code in a file with the _______ extension.

syntax; .class

Compiler

translates a Java source file into a file that contains byte code instructions, assuming the program is free of syntax errors

A compiler

translates source code into executable code

A location in memory used for storing data and given a name in a computer program is called a ______ because the data in the location can be changed.

variable

Files containing Java code must end with what "extension"?

.java

JVM stands for _______.

Java Virtual Machine

Punctuation

Most programming languages require the use of punctuation characters. These characters serve specific purposes, such as marking the beginning or ending of a statement, or separating items in a list.

Operators

Operators are symbols or words that perform operations on one or more operands. An operand is usually an item of data, such as a number.

Syntax

These are rules that must be followed when writing a program. Syntax dictates how key words and operators may be used, and where punctuation symbols must appear.

Key Words

These are words that have a special meaning in the programming language. They may be used for their intended purpose only. Key words are also known as reserved words.

Programmer-Defined Names

Unlike key words, which are part of the programming language, these are words or names that are defined by the programmer. They are used to identify storage locations in memory and parts of the program that are created by the programmer. Programmer-defined names are often called identifiers.

Which tool consists of a text editor, compiler, debugger, and other utilities integrated into a package with a single set of menus?

integrated development environment

To run a Java program from a command line, we use the ___ command.

java

Enter a command-line statement that will run a Java program named Test. Assume that the program has compiled successfully.

java Test

The standard name of the Java compiler is

javac

Enter a command-line statement that will compile a Java program named Test.

javac Test.java

Words that have a special meaning in a programming language are called _____.

key words


Related study sets

actividades en las redes sociales

View Set

PEDS: Chapter 23: Growth and Development of the Infant

View Set

Nursing Management of the Newborn

View Set

SUPA Economics: Chapter 2 objectives

View Set

Demonstrating movements of synovial joints

View Set