Final Keyword in Constant utility class
问题 Is the any difference in performance and/or any other benefits we can get when using final keyword with constant utility class. [ This class contains only static final fields and private constructor to avoid object creation] public class ActionConstants { private ActionConstants() // Prevents instantiation { } public static final String VALIDFIRSTLASTNAME = "[A-Za-z0-9.\\s]+"; public static final String VALIDPHONENUMBER = "\\d{10}"; ... ... } Only diffrence is class is made final public final