Within Java,
- when to declare an object as "private final",
- when to declare an object as "public"?
In the following code segment, String regex
is declared as Private final
- does it mean that it can only be used within the class
RegexExcludePathFilter
, - why
accept
can be declared aspublic
. - What are the inherent design considerations?