Multiple choice

How many numeric data types are supported in Java?

  1. 8

  2. 4

  3. 2

  4. 6

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

Java has exactly 6 primitive numeric data types: 4 integer types (byte, short, int, long) and 2 floating-point types (float, double). This totals 6 numeric primitives. Option A (8) is wrong - that would include non-numeric types like boolean and char. Options B (4) and C (2) are too low.