A

Admin • 831K Points
Coach

Q. Which of the following is not a valid way to declare an integer variable in Java?

  • (A) int x = 42
  • (B) int y = 3.14
  • (C) int z = -10
  • (D) int w = 0x1A
  • Correct Answer - Option(B)
  • Views: 20
  • Filed under category Java
  • Hashtags:

Explanation by: Admin
The correct answer is Option B: int y = 3.14.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.