While working on a Spring Boot project I got this doubt that what is better to use to Save Constant Values, application properties file or a Java Interface?
To get value from application.properties we have to declare variables in every file where for Java Interface, we will have only one declared variable referred everywhere.
Any other advantage one over other. Can anyone figure out in terms of memory efficiency?