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
πŸ’¬ Discuss
βœ… Correct Answer: (B) Prints false

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
297
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Jatin Dubey
Publisher
πŸ“ˆ
87%
Success Rate