I have a large number of URLs (almost 30) in my application. I put them in a class as static data elements. I want to ask if it is better to store this in a String.xml file?
Store them as a string resource if the URL is not changed. It looks like public static final
public static final
Saving them as string resources gives only an advantage if you have different URLs for different languages / locales. Otherwise there is no use.
Source: https://habr.com/ru/post/903585/More articles:Spring AOP without XML - javaRegular expression: match string between two slashes if string itself contains escaped slashes - pythonHow to avoid two jobs running simultaneously in Quartz? - javaMultiple log files with log4j - javaHow to combine string [] with string with spaces between - c #Equality operators are always left-associative, will that matter? - operatorsAppFabric 1.1 Caching (Windows Service Failure) - cachingmodel saving example - javascriptWhy do I / O errors prevent exceptions? - delphiWhy does HTML coding prevent certain XSS attacks? - htmlAll Articles