Variables and Data Types

AP Computer Science A· difficulty 1/5

Which of the following is NOT a Java primitive type?

  • A

    boolean

  • B

    double

  • C

    int

  • D

    String

    check_circle

Explanation

<code>String</code> is a class (reference type), not a primitive. AP CSA primitives: <code>int</code>, <code>double</code>, <code>boolean</code>.

Want 10 more like this — adaptive to your weak spots?

Related questions