Q. Which of the following is the correct way to declare a boolean variable named isJavaFun and initialize it to true in Java?
β
Correct Answer: (A)
boolean isJavaFun = true
Explanation: The correct answer is Option A: boolean isJavaFun = true.