The following program: public class Test{ static boolean is OK; public static void main(String args[]){System.out.print(is OK); } } ?
(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
Share this... |
Facebook
|
Twitter
|
Linkedin
|
Whatsapp
|
Your email address will not be published. Required fields are marked *