Output Questions
General
Data Types
Methods
History
100

What is the output 

System.out.println(2+7+8);

17

100

Which university did the creators of Snapchat attend?

Stanford University

100
How many Java primitive data types are there?

8

100

What is the return type of a method that does not return any value?

void


100

What was the most popular game created in Java?

Minecraft

200

What is the Output

System.out.println("hello/nJacob");

hello

Jacob

200

Which import statement is needed for user input? 


import java.util.Scanner;


200

What data type is commonly used in loop or if condition statements?

 boolean

200

What method does ArrayList use to check the number of elements?

size();

200

Who created Java?

James Gosling

300

What is the output

System.out.println(“1 “ + (1+2) + “ 5”);

135

300

Which year was Twitter released?

2006

300

What primitive data types are used for decimal numbers?

float and double

300

What String method returns the position of the last found occurrence of specified characters in a string 

lastIndexOf()

300

Which company currently owns java?

Oracle

400

What is the output?

Dog dog2 = new Dog();

System.out.println(dog2);

prints out memory address

400
Which programming language is Instagram written in?

Python

400

What are the integer primitive data types in java?

short, long, int, byte


400

What method has the same name as that of it’s class?

Constructor

400

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.

500

What is the output?

System.out.println("*");

System.out.print("//");

System.out.println("/");

*

///

500

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.

500

What is used in array lists to allow storage of primitive data types

Wrapper Classes

500

What method can be defined only once in a program

Main method

500

What year was Java released?

1995