Unit 3, Java Fundamentals Part 1 Flashcards

(17 cards)

1
Q

What is java

A

-object oriented programming language

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

What are key words

A

These are words that have special meaning in the programming language
-key words are also known as reserved words
-they may by used for their intended purpose only

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

What is an operator

A

Operators are symbols or words that perform operations on one or more operands

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

What is an operand

A

an item of data such as a number

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

What is punctuation

A

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

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

What are programmer-defined names

A

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

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

what is a syntax

A

these are rules that need to be followed when writing a program.
-syntax dictate how key words and operators should be used and where punctuation symbols must appear

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

How do you organize the java code

A

-in classes
-inside a class there are variables which are place holders for data (could be simple values or driven from other classes)
-Methods, which contain the code to process the data. They can have their own data variables in addition to the ones defined at the class level

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

What is used at the end of Java Statements

A

semi colons

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

What is the source code

A

programmer writes code
-source code files have a .java file extension

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

What is a compiler

A

-Compiler translates source code into another file containing translated instructions
-This process checks for syntax errors (such as missing semicolon)
-Complier=java turns into bytcode (.class)

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

What is bytecode

A

The compiler output isn’t a direct machine code like in C/C++, so Java complies into a intermediate form called bytcode
-it is a machine language of the JVM (java virtual machine) not of the physical CPU

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

Why is Java code portable

A

-it can run on any computer with a JVM

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

What is JVM(interpreter)

A

-it acts like an interpreter that reads the .class bytecode and translates it into real CPU language
-bytecode turns into machine code to run on CPU

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

What are escape sequences?

A

-escape sequences are special combinations of characters that start with backslash

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

What are variables

A

-a named storage location in a computers memory

17
Q

what is a literal

A

-value that is written into the code of a program