Which of the following is NOT a numeric data type in Java?

  1. byte
  2. int
  3. char
  4. float
Correct answer char

Explanation

char is used for characters, not numbers, although it can be cast to int.

Update: Admin added a tag on this question

Topics

By Admin · · 28 views