A

Admin • 828.03K Points
Coach

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

  • (A) long x = 123L
  • (B) long y = 123
  • (C) long z = 123.0
  • (D) long w = 0x1L
  • Correct Answer - Option(C)
  • Views: 17
  • Filed under category Java
  • Hashtags:

Explanation by: Admin
The correct answer is Option C: long z = 123.0.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.