A

Admin • 828.03K Points
Coach

Q. The following program

Code:
public class Test{
static boolean isOK;
public static void main(String args[]){
System.out.print(isOK);
}
}
  • (A) Prints true
  • (B) Prints false
  • (C) Will not compile as boolean is not initialized
  • (D) Will not compile as boolean can never be static
  • Correct Answer - Option(B)
  • Views: 12
  • Filed under category Java
  • Hashtags:

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.