What are olympic bronze medals primarily made out of?
This kind of string, immutable and defined in code, is delimited by double-quotes (e.g. "Hello")
What is a string literal?
When a method name has more than one body defined, differentiated by unique lists of parameters, they are called this.
an overloaded method
int x = 1;
while (x != 100)
x*=2;
System.out.println(x);
This is the the result of the executing the code above.
In what modern video game can you purchase "v-bucks"?
Fortnite
"abcdefgh".substring(2, 4)
What is "cd"?
What are the special methods that have headers of public and the name of the class?
Constructors
for(int j = 0; j <= 100; j += 2)
for(int k = 100; k > 0; k--)
x++;
What does “Hakuna matata” mean?
no worries
if (num > 0)
if (num < 10)
System.out.println("AAA");
else
System.out.println("BBB");
This is printed after executing the code above if num = 20.
What is BBB?
Which of these Pokemon is a psychic type?
Budew
Darkrai
Mime jr
Raichu
mime jr.
what is the output?
System.out.println("hi".indexOf("z"))
-1
If my object created in a test class is this:
Class myObj = new Class (3, false);
What would the constructor header look like?
public Class (int a, boolean b)
What does the following print?
for (int i = 3; i <= 9; i++)
{ for (int j = 6; j > 0; j--) { System.out.print("*");
}
System.out.println();
}
A rectangle of 7 rows and 6 stars per row.
flareon
jolteon
espeon
umbreon
leafeon
glaceon
sylveon
what does toString do?
What is printed as a result of the following code segment?
for (int k = 0; k < 20; k+=2) {
if (k % 3 == 1) {
System.out.println(k + " ");
}
}
4 10 16