Hello,
I was reading an article at http://www.theserverside.com/home/thread.jsp?thread_id=18040&article_count=37 and figured I would come here to seek answers for this question.
I did search the forum before posting this question but did not find descriptive answers to my questions.
I would like to know if anyone can define the following terms for me as I realize that I don't know the answers as well as I should.
1. Typesafe constants/enumerations (I know what a constant and an enumeration are but I don't know how to make them typesafe or what that means.
2. Defensive Copying
3. Immutable Objects (I have more of an idea about this one but could use some enlightening.)
Any and all help is appreciated
I was reading an article at http://www.theserverside.com/home/thread.jsp?thread_id=18040&article_count=37 and figured I would come here to seek answers for this question.
I did search the forum before posting this question but did not find descriptive answers to my questions.
I would like to know if anyone can define the following terms for me as I realize that I don't know the answers as well as I should.
1. Typesafe constants/enumerations (I know what a constant and an enumeration are but I don't know how to make them typesafe or what that means.
2. Defensive Copying
3. Immutable Objects (I have more of an idea about this one but could use some enlightening.)
Any and all help is appreciated