MCQOPTIONS
Saved Bookmarks
| 1. |
What is the output of this program?public class bool_operator_Example { public static void main(String args[]) { boolean p = true; boolean q = !true; boolean r = p | q; boolean s = p & q; boolean z = s ? q : r; System.out.println(s + " " + z); } } |
| A. | false true |
| B. | true false |
| C. | true ture |
| D. | false false |
| E. | None of these |
| Answer» B. true false | |