Flashcards in Ch1 Sec.3-4 Deck (26)
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
// then whatever the comment is. usually after code.
/* 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
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
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
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?
human readable processor instructions
translates language program into low level machine instructions.. 0s and 1s
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.
what is the Java Standard Library?
identifiers that other programmers have pre-defined using sets of classes and methods.
is Java Case sensitive?
best practice is to use identifiers that are different and not the same word with different caps.
what letters and symbols can be used as part of an identifiers name?
uppercase and lowercase
$ , _
0 through nine
what is the preferred case (upper/lower) for identifiers?
1st letter of each word should be uppercase ,
how is a name in java written in code?
series of identifiers separated by the period character.
translates computer language (source code) into code for the processor.(into target language)
like a compiler but it also executes the code and does so one line at a time.
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.
one level above machine language and requires cpus to have bytecode compilers onboard in order for the code to work on its system.
IDE= integrated development environment -- allows set of tools to be used to edit or create software (java).