A

Admin • 831K Points
Coach

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: 19
  • Filed under category Java
  • Hashtags:

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

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.