I want to define some constants in a class, which is used for time management. My class looks as follows:
public class TimeManager {
public static final long SECOND = 1000;
public static final long MINUTE = SECOND * 60;
public static final long HOUR = MINUTE * 60;
public static final long DAY = HOUR * 24;
.
.
.
}
Are there any performance problems with these constant definitions? Are the values computed by the Java compiler?