Software we use to code
What is Eclipse
!=
What is operator for not equal to
what is this method return type?
public static boolean myMethod(int a)
What is boolean
This data structure stores multiple values of the same type under one name and can be accessed by an index.
What is an array?
Who invented java and when
James Gosling, 1991
Data type used to contain average student marks
What is double
||
What is "or"
what is this methods parameter type?
public static int myMethod(string name)
What is string
If an array in Java has 10 elements, what is the index of the 7th element
What is 8?
Mr. Weigand first name
What is Dan
Where class files are stored
What is package
How you would exit a switch early.
What is break;
What is it called when you write more that one method of the same name?
What is method overloading?
What is the output of this code?
int[] nums = {2, 4, 6, 8};
System.out.println(nums[2]);
What is 6?
what is this flag![]()
what is Iceland
int that stays constant in the code
What is FINAL_STATIC_INT
What is the difference between an if-else if-else structure and multiple separate if statements?
In if-else if-else, only one condition can be true and executed. But with separate if statements, multiple conditions can all run if they are true.
what are variables declared in a method called?
what is local?
In Java, what happens if you try to access an array element using an index that is outside the valid range?
What is an ArrayIndexOutOfBoundsException?
what is an ill 7
six 7
The bigger data type, short or byte?
What is short
What will this print
int num = 14
boolean validNum = false;
if(num <15 && !validNum )
print("This is a small number")else{
print("This is a big number")
What is: This is a small number
What is the argument, and output of this method
String name = "Jake"
public static int myMethod(String b)
String a = "Blake";
String newName = (b + "and" + a);
What is String name
Jake and Blake
int[] data = {3, 1, 4, 1, 5};
int sum = 0;
for (int i = 0; i < data.length; i++)
if (data[i] % 2 == 0)
sum += data[i];
System.out.println(sum);
What is 4?
Ask this question all day long, but always get completely different answers, and yet all the answers will be correct. What is the question?
What time is it?