?
The following program:
The following program:
public class Test{
static boolean isOK;
public static void main(String args[]){
System.out.print(isOK);
}
}
public class Test{
static boolean isOK;
public static void main(String args[]){
System.out.print(isOK);
}
}
Answer & Solution
Correct Answer:
Option
B
By default, a boolean variable will contain false.
Join the Discussion
Login to post a comment or share your explanation.
Login2) istrue = false
static variables gets always get initialized with some values and because this is BOOLEAN TYPE hence default initialization value=FALSE