Ch1 Sec.3-4 Flashcards
comments and whitespace
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
Single-line comment?
// then whatever the comment is. usually after code.
multi-line comment?
or
block comment
/* whatever the comment is and then ended with */ */ can be used with a single line too
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.
are blank lines considered code?
yes but it is ignored by compiler most of the time
syntax error?
the symbols in a program are used incorrectly.
–missing a semicolon.. etc.
do upper and lowercase letter matter in the code?
yes, especially with the name of objects or any commands used.
compile time error?
error that the compiler detects
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
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.
program also called a?
application
assembly language?
human readable processor instructions
compiler?
translates language program into low level machine instructions.. 0s and 1s
machine instruction?
0s and 1s stored in memory, tells processor to carry out operations like multiplication.
the following identifiers are part of what? string, system, out, println.
Java Standard Library.