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
Q

Just-In-Time (JIT)

A

Reads byte-code in chunks and compiles to machine language in chunks as needed.

26
Q

To run a java program

A

Run compiler to translate into byte-code, then use JVM to translate byte-code to machine language.

27
Q

Source program (source code)

A

The Java input program to the compiler

28
Q

Object program (object code)

A

The translated output program that the compiler produces.

29
Q

Class loader

A

A program that connects each class together so the program will run as a whole. (Normally automatically done)

30
Q

Saved code files should be named

A

After the class .java

31
Q

To compile java program to byte-code

A

javac

32
Q

A compiled class extension is

A

.class

33
Q

To run a Java program in one line

A

java (name of class with min method)

34
Q

Syntax

A

Tells what arrangement of words or punctuation is acceptable in a programming language.

35
Q

Semantics

A

Describes the meaning of things written while following the syntax rules of the programming language.

36
Q

Syntax error

A

Grammatical mistake in the program

37
Q

Run-time error

A

An error not detected until the program is ran.

38
Q

Logic error mistake

A

A mistake in the underlying algorithm. IE it runs, but doesn’t do what you want it to.

39
Q

Identifier

A

Names of variables in a program. Can’t start with a digit, all characters must be letters, digits, or underscore.

40
Q

Keywords, reservedwords

A

Words that Java has assigned a predefined meaning, thus cannot be used as a name for a variable.