I am currently working on a legacy code in Java 1.6 and i found that they have a Constants Interface in the Utils package (Is a quite old Webapps) 
Well, some of the classes import the interface and some just implements it. While i am unable to make some major fixes in the project i would like to use the same solution for every classes that is using this class (almost everything in the projects calls for it).
The content of the class is just a few hundreds of Strings, some static and final and some just public.
Which option is the better approach for this sort of Constants file? extends, implements or just a basic import?
implementswas an old hack, please don't do that anymore.importis much better. If the number of imports is truly huge, you can consider using a global wildcard (*) to import many constants at once.public,static, andfinal, without the need to declare. You may add the redundant modifiers or omit them, but it’s strongly recommended to be consistent, as declaring these modifiers only on some of the fields obfuscates the fact that all fields have the same modifiers. Besides that, @fascynacja is right, don’t implement this interface, useimport static …