Ch1 Sec.3-4 Flashcards Preview

Java 1 > Ch1 Sec.3-4 > Flashcards

Flashcards in Ch1 Sec.3-4 Deck (26)
Loading flashcards...
1

comment?

not read by code but there for other programmers to read 2 types of comments

-sometimes code is commented out temporarily too so it does not execute

2

Single-line comment?

// then whatever the comment is. usually after code.

3

multi-line comment?
or
block comment

/* whatever the comment is and then ended with */
*/ can be used with a single line too

4

whitespace? / newlines?

spaces or hit return and leave a space.. used to make code readable.
-indentations are good too so its easy to see which code goes with what or if code is embedded within code then it can be seen.

5

are blank lines considered code?

yes but it is ignored by compiler most of the time

6

syntax error?

the symbols in a program are used incorrectly.
--missing a semicolon.. etc.

7

do upper and lowercase letter matter in the code?

yes, especially with the name of objects or any commands used.

8

compile time error?

error that the compiler detects

9

Logical error?

cant be detected by the compiler and instead the program does something you dont want because you used the wrong code.
logical errors are also called bugs

10

compiler warning?

sometimes logical issues are found but the code can still pass errors and therefore the code can be compiled. warnings should not exist b/c it can cause logical errors.

11

program also called a?

application

12

assembly language?

human readable processor instructions

13

compiler?

translates language program into low level machine instructions.. 0s and 1s

14

machine instruction?

0s and 1s stored in memory, tells processor to carry out operations like multiplication.

15

the following identifiers are part of what? string, system, out, println.

Java Standard Library.

16

what is the Java Standard Library?

identifiers that other programmers have pre-defined using sets of classes and methods.

17

is Java Case sensitive?


Yes
best practice is to use identifiers that are different and not the same word with different caps.

18

what letters and symbols can be used as part of an identifiers name?

uppercase and lowercase
any letter
the symbols:
$ , _
0 through nine

19

what is the preferred case (upper/lower) for identifiers?

1st letter of each word should be uppercase ,

20

how is a name in java written in code?

series of identifiers separated by the period character.

21

compiler?

translates computer language (source code) into code for the processor.(into target language)

22

interpreter?

like a compiler but it also executes the code and does so one line at a time.

23

how is java code translated and why does this allow it to be used on many devices?

the high level language (java) is run through an interpreter where it becomes the target language of bytecode. this code works universally on cpus.

24

byte code?

one level above machine language and requires cpus to have bytecode compilers onboard in order for the code to work on its system.

25

IDE?

IDE= integrated development environment -- allows set of tools to be used to edit or create software (java).

26

can the command line be used as an interpreter/ compiler?

yes. java developer kit - SDK does not have its own compiler.