Constants instead of numbers (in Java and C?