K

Kirti • 10.45K Points
Tutor II

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: 126
  • Filed under category JAVA

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.


Question analytics