Chp 1: Java Flashcards

1
Q

features of the Java programming language

A

“write once, run anywhere”

case sensitive

semicolon

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

how to add comments on Java (or to “comment out”)

A

line comments: block a line or part of it by adding a // at the beginning

block comments: /* (commented out code) */
can block out many lines

Javadoc comments: special block comments called documentation commends

/** (comment) */

used to automatically generated nicely formatted program documentation with a program named javadoc

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

identifiers

A

the names of variables, methods, classes, packages, and interfaces

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

at run time

A

a class called Runtime allows any Java application to interface with the environment it is running on

ex: JRE: Java runtime engine, which develops programs

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

debugging

A

finding and removing errors from a program

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

logic error

A

a bug that doesn’t crash the program, but makes the program run unexpectedly

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

camel casting

A

camelCasting

an ideal way to name variables

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

compiler

A

Javac.exe is the Java compiler, managed by Eclipse IDE

interprets the code you wrote and turns it into machine code (bytecode), which can be used

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

syntax error

A

error in syntax or sequence or rules of coding

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

logic

A

understanding something in a sequential way

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

variables

A

something that holds a value that varies

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

whitespace

A

things that alters the typography

\n
\t
\r
[spacebar]

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

source code

A

the code that you write in the Java programming language

has the .java extension

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

Integrated Development Environment (IDE)

A

Eclipse IDE

automates a lot of things for Java, like Java.exe, Javac.exe (compiler), etc

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

Javadoc

A

a documentation generator for Java

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

import statements

A

the first code in a Java sourcefile, like the name of the class and the scanner

import java.util.Scanner;
        Scanner scanner = new Scanner(System.in);
17
Q

JDK

A

Java development kit

has JRE (Java Runtime engine) and the place to write programs. Everything you need to work on Java

18
Q

literal string

A

a sequence of characters to populate string objects or to display text to a user

“this is an example of a literal string”