Internally for Java what is better, or what is optimal, or What is the standard: implement a class with constants or using dot notation?
Example:
Option 1:
import com.myproject.Constantes;
public class myClass {
myClass() {
System.out.println("Math: " + Constantes.PI);
}
}
Option 2:
import com.myproject.Constantes;
public class myClass implements Constantes {
myClass() {
System.out.println("Math: " + PI);
}
}
Which is better and why? MVJ use, resources, speed?