Q. Which of the following is not a valid way to declare a char variable in Java?
β
Correct Answer: (D)
char w = 0x0041
Explanation: The correct answer is Option D: char w = 0x0041.