Java - Custom Exceptions
You have a Java program that uses the number 3.14159 multiple times for calculations. What is the best practice to improve this code?
final double PI = 3.14159; improves readability and maintainability.PI declared as final double PI = 3.14159; [OK]15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions