Why is the System class declared as "final" in Java? -
this question has answer here:
as per understanding, class declared final prevent being extended/inherited. see there can security , performance gains in regard.
but there specific design decision behind this? eg: realize kind of design pattern? did go around similar thread here! answer not looking for
singleton pattern:
-private constructor
-only static methods
-no need have more 1 object of class or object @ all
-no need extend fundamental class
Comments
Post a Comment