Java Terms
Conditions and Loops
Potpourri
Java Quick Maths
Methods
100

A template used to create objects and to define object data types and methods

What is a class?

100

Use this loop when you need the body to execute at least once, whether or not the condition is true or not

What is Do While Loop?

100

These data types are used when you need a number with a decimal

What are float & double?

100

_____ is a data type that stores a 64-bit whole number ( for larger whole numbers).

what is long

100

public static void main(String[] args)

A java program entry point

200

The data containers that save the data values during Java program execution.

What is variable?

200

These are the 3 requirements you need to run a loop?

What are a variable, condition and update (increase or decrease)?

200

Descriptive text to explain portion of code that is not executed.

What are comments?

200

What is the output of the following code:     

int b = 10; 

b=b+1;

System.out.println(b++);

What is 11?

200

Method used to extract part of a given String

What is .substring?

300

The process of combining two or more strings to form a new string by subsequently appending the next string to the end of the previous strings.

What is concatenation?

300

A count controlled loop with a known starting and ending point and a constant increment or decrement.

What is a for loop?

300

To print Hello and World on two seperate lines, what lines of code would you use?

What is System.out.println ("hello")

What is System.out.println ("world")


300

The solution to:

8 * 5  + 2 *  4 - 10 * 6 / 2

what is 18?

300

method that returns the character from the specified index

What is .charAt?

400

This is a set of instructions/commands and statements which is written by a programmer by using a computer programming language.

What is source code?

400

This loop does not have to run if condition is met

What is while?

400

This primitive data type cannot be directly converted into a string.

What is boolean?

400

what symbol is used to return a remainder 

what is % or modulus?

400

Method used to determine if two objects have the same content

What is .equals

500

You need this to run object code (bytecode).

What is a JVM (Java Virtual Machine)?

500

A transformation rule that are used in Boolean logic as a way to express the negation of a conjunction (AND) or a disjunction (OR) in terms of the other.

what is DeMorgan's Rules

500

How you compile a .java file in the Windows Subsystem for Linux.

What is type javac?

500

The answer to 7 + (6 × 5+ 3)

What is 40?

500

The substring method starts counting at this number.

What is 0?

M
e
n
u