All Questions
2 questions
2
votes
2
answers
177
views
How to structure classes for two distinct use cases that share key parameters
I have a Java application that needs to generate mathematically-defined 3D shapes for a voxel world (Minecraft specifically, but that's not important to the discussion). These include sphere, ovoid, ...
0
votes
2
answers
526
views
Why 'class String' definition has 'final' modifier? [duplicate]
This answer gives an indication that class String is declared final for thread safety, which does not convince.
This answer does not convince when it says: And so, you make the classes final. There ...