private static final SecureRandom no = new SecureRandom();
Why should we finalize no in here ??
Asked
Active
Viewed 38 times
0

JaxonFlexonWaxon
- 140
- 10
-
3Finalize or mark a variable as final? – Jeroen Vannevel Aug 30 '15 at 13:17
-
Note that a finaliser is a rarely used (and generally unwise to use) method that us called when an object is garbage collected – Richard Tingle Aug 30 '15 at 14:29
-
Note `finalize` is a method on `Object` and `final` is a keyword would means the reference to the SecureRandom cannot be changed. – Peter Lawrey Aug 30 '15 at 15:17