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
πŸ’¬ Discuss
βœ… Correct Answer: (D) char w = 0x0041
Explanation: The correct answer is Option D: char w = 0x0041.
Explanation by: Rakesh Kumar
The correct answer is Option D: char w = 0x0041.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
116
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Rakesh Kumar
Publisher
πŸ“ˆ
86%
Success Rate