Home / Programming MCQs / JAVA MCQs / Question

Y

Yatendra Sir • 5.60K Points
Tutor III

Q. Enums were introduced in?

(A) Java 4.0
(B) Java 8.0
(C) Java 5.0
(D) Java 6.0
Explanation by: Yatendra Sir
Enums were introduced in Java 5.0. Enums restrict a variable to have one of only a few predefined values. The values in this enumerated list are called enums.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.