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

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -