R

Ranjeet • 34.60K Points
Instructor I

Q. Which of the following is the correct way to declare a boolean variable named isJavaFun and initialize it to true in Java?

  • (A) boolean isJavaFun = true
  • (B) bool isJavaFun = true
  • (C) boolean = true
  • (D) bool = true
  • Correct Answer - Option(A)
  • Views: 122
  • Filed under category JAVA

Explanation by: Ranjeet
The correct answer is Option A: boolean isJavaFun = true.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.


Question analytics