What is the output
System.out.println(2+7+8);
17
Which university did the creators of Snapchat attend?
Stanford University
8
What is the return type of a method that does not return any value?
void
What was the most popular game created in Java?
Minecraft
What is the Output
System.out.println("hello/nJacob");
hello
Jacob
Which import statement is needed for user input?
import java.util.Scanner;
What data type is commonly used in loop or if condition statements?
boolean
What method does ArrayList use to check the number of elements?
size();
Who created Java?
James Gosling
What is the output
System.out.println(“1 “ + (1+2) + “ 5”);
135
Which year was Twitter released?
2006
What primitive data types are used for decimal numbers?
float and double
What String method returns the position of the last found occurrence of specified characters in a string
lastIndexOf()
Which company currently owns java?
Oracle
What is the output?
Dog dog2 = new Dog();
System.out.println(dog2);
prints out memory address
Python
What are the integer primitive data types in java?
short, long, int, byte
What method has the same name as that of it’s class?
Constructor
What was the initial name for Java?
The language was initially called Oak after an oak tree that stood outside Gosling's office.
Later the project went by the name Green and was finally renamed Java, from Java coffee, a type of coffee from Indonesia.
What is the output?
System.out.println("*");
System.out.print("//");
System.out.println("/");
*
///
Today, what language is Java written in?
Java
The very first Java compiler was developed by Sun Microsystems and was written in C using some libraries from C++. Today, the Java compiler is written in Java, while the JRE is written in C.
What is used in array lists to allow storage of primitive data types
Wrapper Classes
What method can be defined only once in a program
Main method
What year was Java released?
1995