1.  >>  高等继续教育 / Java程序设计
 高等继续教育 / Java程序设计
正确率:100%

【Java程序设计】模拟试题
读下面程序,给出最后屏幕输出结果。public class BitwiseDemo { static final int VISIBLE = 1; static final int DRAGGABLE = 2; static final int SELECTABLE = 4; static final int EDITABLE = 8; public static void main(String[] args) { int flags = 0; flags = flags | VISIBLE; flags = flags | DRAGGABLE; if ((flags & VISIBLE) == VISIBLE) { if ((flags & DRAGGABLE) == DRAGGABLE) { System.out.println("Flags are Visible and Draggable."); } }flags = flags | EDITABLE; if ((flags & EDITABLE) == EDITABLE) { System.out.println("Flags are now also Editable."); } }}
考题内容:
读下面程序,给出最后屏幕输出结果。 public class BitwiseDemo {    static final int VISIBLE = 1;                 static final int DRAGGABLE = 2;    static final int SELECTABLE = 4;          static final int EDITABLE = 8;    public static void main(String[] args)    {        int flags = 0;        flags = flags | VISIBLE;        flags = flags | DRAGGABLE;        if ((flags & VISIBLE) == VISIBLE) {            if ((flags & DRAGGABLE) == DRAGGABLE) {                 System.out.println("Flags are Visible and Draggable.");            }        } flags = flags | EDITABLE;        if ((flags & EDITABLE) == EDITABLE) {    System.out.println("Flags are now also Editable.");        }    }}

  积分
 参考答案:
 佳题速递:
  • 我们要在出发前把一切都规划好。(plan out, departure)电子商务英语
  • 深层沟通的特点是什么?组织行为学概论
  • 22[单选题] 人类第五号染色体属于() A.中着丝粒染色体 B.亚中着丝粒染色体 C.近端着丝粒染色体 D.端着丝粒染色体医学遗传学
  • 9[填空题] ()是《论语》文体的基本特征河南理工大学
  • 预算单位是指在国际企业中单独编制预算并以预算为标准进行考核的部门。国家开放大学
  • 视距测量视线倾斜时,高差公式为: 建筑测量