Q. An enum variable in java can take ___ as the assigned value in Java.

  • (A) Any integer
  • (B) Enum constant only
  • (C) Any non null object
  • (D) None of the above
πŸ’¬ Discuss
βœ… Correct Answer: (B) Enum constant only

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
292
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Ram Sharma
Publisher
πŸ“ˆ
96%
Success Rate