A

Admin • 828.70K Points
Coach

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

  • (A) char x = 'A'
  • (B) char y = 'n'
  • (C) char z = 65
  • (D) char w = 0x0041
  • Correct Answer - Option(D)
  • Views: 22
  • Filed under category Java
  • Hashtags:

Explanation by: Admin
The correct answer is Option D: char w = 0x0041.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.