0

What is enum? We can use final also. What is difference between enum and final?

21st Jul 2016, 2:27 PM
Muhammad Sajid
Muhammad Sajid - avatar
1 Answer
+ 1
Final is used to mark any type of variable as a constant that cannot change. An enum provides a finite set of items with which you can choose from, like a list of months in the year.
25th Jul 2016, 4:18 AM
Donald Church