private constructor and final

Posted by rest_day on Stack Overflow See other posts from Stack Overflow or by rest_day
Published on 2010-06-02T09:33:33Z Indexed on 2010/06/02 9:44 UTC
Read the original article Hit count: 106

Filed under:

Why is it a good practice to mark a class with only private constructors as final? My guess is, it is to let other programmers know that it cannot be sub-classed.

© Stack Overflow or respective owner

Related posts about java