KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I was wondering if there was an equivalent to c++'s const in Java. I understand the final keyword, but unfortunately I cannot use that to declare a functions return value final. Instead, it always ensures the function cannot be overridden, correct? Basically, I want to make sure a given returned class cannot be modified and is read only. Is that possible in Java?
Tags (comma-separated)
Save Edits
Cancel