1/9
Looks like no tags are added yet.
Name | Mastery | Learn | Test | Matching | Spaced |
---|
No study sessions yet.
To output:
Hi There
You would need to use:
System.out.______("Hi ");System.out.print("There");
What would correctly replace ______ ?
To declare an integer variable x and set it equal to 17 you would type:
int x = 17;
What is the most precise primitive data type for storing decimal values?
double
Assuming that scan is a properly initialized Scanner variable, which of the following correctly inputs a double?
double val = scan.nextDouble();
Which of the following is a legal variable name in Java?
name
Which of the following variable declarations is a correct assignment?
double y = 82;
In Java all output uses the ______ data type.
String
Which of the following is true about primitive data types?
They hold only one piece of data at a time.
Which of the following are primitive data types?
I. double
II. String
III. boolean
I and III only
Put the following data types in order from largest to smallest (in terms of memory used).
String, double, int, boolean