R

Ritu Singhal • 4.36K Points
Extraordinary

Q. Which of the following is a valid way to declare a constant in Java?

  • (A) final int PI
  • (B) const float PI
  • (C) static double PI
  • (D) final double PI
  • Correct Answer - Option(D)
  • Views: 21
  • Filed under category JAVA

Explanation by: Ritu Singhal
The correct answer is Option D: final double PI.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.


Question analytics