- 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
Java Programming Language MCQ Java Data Types and Variables - MCQ
⚠ Report ✓ Question Verified Copy Link
public class Test{
static boolean isOK;
public static void main(String args[]){
System.out.print(isOK);
}
}
Learn More MCQ Questions from Java Programming Language MCQ Java Data Types and Variables - MCQ