Q. Which of the following is not a valid way to declare a long variable in Java?
β
Correct Answer: (C)
long z = 123.0
Explanation: The correct answer is Option C: long z = 123.0.