Chapter 1: Getting Started Flashcards

1
Q

Intermediate language

A

Same for all computers, a language that must be translated into a appliance’s specific language.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Java byte-code

A

Java intermediate language used by Java Virtual Machine (JVM)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Byte

A

8 bits

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Object Oriented Programmin (OOP)

A

A program that consists of objects that interact with each other by means of actions.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Objects

A

Objects in a program

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Methods

A

Actions the objects perform. Also called procedures, functions, and subprograms.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Class

A

A group of objects of the same type and having the same method.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Java application program

A

A class with a method named “main”; a regular java program ran on a computer

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Applets

A

A program ran on a web browser

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Applet viewer

A

A debugging aid sometimes used to view applets

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Body of a method is enclosed in…

A

Braces { }

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

System.out

A

An object that sends output to screen

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Println

A

A method causes quoted string to be output on screen; tells computer to show what is in the parenthesis.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

System.out.println

A

Causes quoted string to be output on screen; tells computer to show what is in the parenthesis.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Invoking a method

A

AKA sending a message: Performing and action

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Argument

A

Provides information needed by a method to carry out an action. IE, the test to display

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

Writing a program:

A

Object.MethodName.(arguments)

18
Q

int answer;

A

Compute a thing with an answer in a whole number

19
Q

Assignment operator

A

Tells how method will be carried out.

20
Q

+

A

Can mean add or connect two things

21
Q

High level languages

A

Easy to use programming languages

22
Q

Machine language (low level language)

A

The language that the computer directly understands.

23
Q

Compiler

A

A program that translates (compiles) from high level to a low level language program.

24
Q

Interpreter

A

A compiler for JVM to machine language that translates one byte at a time

25
Just-In-Time (JIT)
Reads byte-code in chunks and compiles to machine language in chunks as needed.
26
To run a java program
Run compiler to translate into byte-code, then use JVM to translate byte-code to machine language.
27
Source program (source code)
The Java input program to the compiler
28
Object program (object code)
The translated output program that the compiler produces.
29
Class loader
A program that connects each class together so the program will run as a whole. (Normally automatically done)
30
Saved code files should be named
After the class .java
31
To compile java program to byte-code
javac
32
A compiled class extension is
.class
33
To run a Java program in one line
java (name of class with min method)
34
Syntax
Tells what arrangement of words or punctuation is acceptable in a programming language.
35
Semantics
Describes the meaning of things written while following the syntax rules of the programming language.
36
Syntax error
Grammatical mistake in the program
37
Run-time error
An error not detected until the program is ran.
38
Logic error mistake
A mistake in the underlying algorithm. IE it runs, but doesn't do what you want it to.
39
Identifier
Names of variables in a program. Can't start with a digit, all characters must be letters, digits, or underscore.
40
Keywords, reservedwords
Words that Java has assigned a predefined meaning, thus cannot be used as a name for a variable.