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

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

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

android - How to create dynamically Fragment pager adapter -