Can Enum be a replacement for a constant file in majority of the situation ?
Javasearch.buggybread.com

Search Interview Questions


 More than 3000 questions in repository.
 There are more than 900 unanswered questions.
Click here and help us by providing the answer.
 Have a video suggestion.
Click Correct / Improve and please let us know.
Label / Company      Label / Company / Text

   



Interview Questions and Answers

 Q1. Can Enum be a replacement for a constant file in majority of the situation ?Design
Ans. Yes , it can be but it may not be an optimal alternative if we need to change the values frequently. As Enum is compiled like any Java File , any change requires the application to be rebuild , deployed and restart.

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     enum  design


Related Questions

  What are concepts introduced with Java 5 ?
  Enums cannot be declared ..
  If I try to add Enum constants to a TreeSet, What sorting order will it use ?
  Can we override compareTo method for Enumerations ?
  enums are intrinsically ..
  When were Enums introduced in Java ?
  What is an Enum type ?
  What is an enumeration?
  Can we extend an Enum ?
  Shall we keep the enumeration name in all capital letters as it contains all constants ?



Help us and Others Improve. Please let us know the questions asked in any of your previous interview.

Any input from you will be highly appreciated and It will unlock the application for 10 more requests.

Company Name:
Questions Asked: