How many numeric data types are supported in Java?
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.