I have a class as follows:
public class MyClass {
...
String lang = Config.getLang();
...
}
Config.getLang()
is a public static method in class named Config
. My question is: Does this initialization have any implication or problem?
String lang = Config.getLang();
Eclipse does not report any compilation problem.