Use LEFT and RIGHT arrow keys to navigate between flashcards;
Use UP and DOWN arrow keys to flip the card;
H to show hint;
A reads text to speech;
46 Cards in this Set
- Front
- Back
Syntax: = value; |
assigning a value (Variables) name = “Maria Blanco”; age = 22; price = 200.50; |
|
is one of dozens of methods in the System class. The System class is a part of the core Java language package of the Application Programming Interface (API) |
System.out.println( ) The println method |
|
What are the 4 java language fundamentals? |
1. Identifiers 2. Keywords 3. Comments 4. Data types |
|
provides string formatting |
printf() (Java output) |
|
defines a class, a template for an object of derived type HelloWorld |
class HelloWorld |
|
A comment enclosed within /* */ |
A multi-line comment (Java comments) |
|
What are the three types of java comments? |
1. A single-line comment starting with // 2. A multi-line comment enclosed within /* */ 3. A documentation or javadoc comment is enclosed between /** and */. These comments can be used to generate HTML documents using the javadoc utility, which is part of Java language comment. |
|
are names that are given by the programmer as name of variables, methods or functions, classes etc. |
Identifiers |
|
comment starting with // |
A single-line (Java comments) |
|
The name used as an identifier must follow the following rules in JavaTM technology: |
1. Each character is either a digit, letter, underscore or currency symbol. 2. First character cannot be a digit. 3. The identifier name must not be a reserved word. |
|
Syntax: ; [= value;] |
variable declaration ex: String name; int age; double price = 55.66; |
|
Reads a byte value from the user. |
nextByte() (Scanner input types) |
|
are used in converting one data type (such as a String) into another data type (such as int or double). |
Java Wrapper Classes |
|
It returns void because the Java interpreter does not expect to receive or process any output from the class. |
void |
|
is a part of the core Java language package of the Application Programming Interface (API) |
The System class |
|
Example of derived data types (Java data types) |
string, date, integer, double, long, float |
|
Example of Primitive data types (Java data types) |
byte, short, int, long, float, double, boolean, char |
|
Reads a string value from the user. |
nextLine() (Scanner input types) |
|
It is also used in wrapping a primitive value into an object. |
java wrapper class |
|
are used in converting one data type (such as a String) into another data type (such as int or double). |
Java Wrapper Classes |
|
is a class |
System |
|
comment starting with // |
A single-line (Java comments) |
|
enclosed between /** and */. These comments can be used to generate HTML documents using the javadoc utility, which is part of Java language comment. |
A documentation or javadoc comment is |
|
is a public static field: it accepts output data. |
out |
|
Reads a boolean value from the user. |
nextBoolean() (Scanner input types) |
|
Reads a short value from the user. |
nextShort()
(Scanner input types) |
|
is used to get user input, and it is found in the java.util package. |
The Scanner class (Java user input) |
|
are reserved and cannot be used as identifiers. |
Java keywords Ex: abstract, boolean, break, float, class, default, continue, char, void, while, else, int, switch |
|
is one of dozens of methods in the System class. The System class is a part of the core Java language package of the Application Programming Interface (API) |
System.out.println( ) The println method |
|
To use the Scanner class, create an object of the class and use any of the available methods found in the Scanner class documentation. T/F |
T |
|
state of the method, it is ____ because it must be called before the class that hosts the method is instantiated |
static |
|
It prints string inside the quotes. |
print() (Java output) |
|
It prints string inside the quotes similar like print() method. Then the cursor moves to the beginning of the next line. |
println() (Java output) |
|
Reads a boolean value from the user. |
nextBoolean() (Scanner input types) |
|
Reads a byte value from the user. |
nextByte() (Scanner input types) |
|
Reads a byte value from the user. |
nextByte() (Scanner input types) |
|
are names that are given by the programmer as name of variables, methods or functions, classes etc. |
Identifiers |
|
Reads a boolean value from the user. |
nextBoolean() (Scanner input types) |
|
Reads a double value from the user. |
nextDouble() (Scanner input types) |
|
Reads a boolean value from the user. |
nextBoolean() (Scanner input types) |
|
Reads a string value from the user. |
nextLine() (Scanner input types) |
|
access specifier/modifier, the main method is declared public so that it is accessible as part of the public interface of the program. |
public |
|
Reads a long value from the user |
nextLong()
(Scanner input types) |
|
Reads a double value from the user. |
nextDouble() (Scanner input types) |
|
Reads an int value from the user |
nextInt() (Scanner input types) |
|
Reads a float value from the user. |
nextFloat() (Scanner input types) |