🎴 Flashcard Mode

web technology Online Quiz - 115

Card1 / 20
Mastered0
Review0
QuestionClick to flip

Which of the following are primitive types?

AnswerClick to flip back
A
byte
💡 Explanation:

In Java, primitive types are the basic data types built into the language: byte, short, int, long, float, double, char, boolean. String is a class (reference type). integer is not a valid Java type (it should be int). Float is a wrapper class, not a primitive (float is the primitive).

Change Mode