Java primitives, reference types, operators, control flow, strings, arrays, type casting and wrapper classes. Excludes OOP, collections and streams.
40 cards · basic cards · AI-written, checked twice. Edit anything.
- What is the smallest integer primitive type in Java?
Show answer
byte
- How many bits does a double primitive occupy?
Show answer
64 bits
- Which primitive stores true or false values?
Show answer
boolean
- What is the range of values for a short primitive?
Show answer
-32768 to 32767
- Which floating-point primitive has lower precision than double?
Show answer
float
- What is the default value of an uninitialized boolean variable?
Show answer
false
- Which primitive type holds a 16-bit Unicode character?
Show answer
char
- What is the maximum value for an int primitive?
Show answer
2147483647
- Is String a primitive or reference type in Java?
Show answer
reference type
- Which class is the superclass of all classes in Java?
Show answer
Object
- What does null represent in Java?
Show answer
absence of a value or no object reference
- What is an array in Java?
Show answer
ordered collection of elements of the same type
- What is the result of 17 % 5?
Show answer
2
- Which operators compare two values and return a boolean?
Show answer
comparison operators (==, !=, <, >, <=, >=)
- What does the && operator do?
Show answer
returns true only if both conditions are true