Chapter 1 Flashcards
What is the code written by a programmer?
Source code
Source code is the human-readable instructions that a programmer writes.
What does a compiler do?
Translates source code into executable code
A compiler converts high-level programming language into machine code.
What file extension is used for Java source code?
.java
The .java extension indicates a file contains Java source code.
What file extension does the Java compiler create?
.class
The .class files contain the bytecode that the Java Virtual Machine (JVM) can execute.
Which files does the JVM read?
.class
The JVM executes the bytecode contained in .class files.
What command is used to run the Java compiler from the command line?
javac
The command ‘javac’ compiles Java source files into bytecode.
command to run Java PROGRAM from command line:
java
receiving a divide by zero error when the program is executed is an example of:
a runtime error
true or false: machine language can be used to write programs that can run on ANY machine.
FALSE
Syntax errors will be detected when?
at compile time
What are Attributes?
data contained in an object
What are Methods?
procedures, or behaviors, that an object performs
What is Encapsulation?
combining of data and code into a single object
What is Data-Hiding?
refers to an objects ability to hide its data from code outside the object.
***an object hides its data but allows outside code to access methods that operate on the data
Who originally developed Java and year developed as well year presented? Name of person and corporation (+ the name it has now)
in 1991 James Gosling at Sun Microsystems developed Java. (now known as Oracle Corp.) In 1995 presented.
The purpose of validating the results of the program is:
To determine whether the program solves the original problem
Syntax is:
Rules that must be followed when writing a program
Software refers to:
Programs
RAM is usually:
A volatile type of memory, used only for temporary storage
One of the design tools used by programmers when creating a model of the program is:
Pseudocode
Keywords are:
Words that have special meaning in the programming language
Byte code instructions are read and interpreted by:
The JVM (Java Virtual Machine)
A runtime error is usually the result of:
A logical error
A program is a sequence of instructions stored in:
The computers memory