您的位置是:首页 >> 计算机 >> Sun认证 >> 文章阅读

SCJP考试题310-025(第二套<1>)


日期:
2005-4-17 9:30:00
来源:
学习联盟
作者:
不详
编辑
dongfangshuo
 Question No: 1 

     Given: 

     1. public class test ( 
     2. public static void main (String args[]) { 
     3. int i = 0xFFFFFFF1; 
     4. int j = ~i; 
     5. 
     6. } 
     7. ) 

     What is the decimal value of j at line 5? 

     A. 0 
     B. 1 
     C. 14 
     D. –15 
     E. An error at line 3 causes compilation to fail. 
     F. An error at line 4 causes compilation to fail. 

     Question No: 2 

     Given: 

     Integer i = new Integer (42); 
     Long 1 = new Long (42); 
     Double d = new Double (42.0); 

     Which two expressions evaluate to True? (Choose Two) 

     A. (i ==1) 
     B. (i == d) 
     C. (d == 1) 
  &nb

此文共有3页 上一页 1 2 3 下一页

关闭窗口

   兆联特别申明
1)除本站特殊规定外,本站所有信息均不拥有版权,仅供学习参考!
2)站内大部分内容注明出处及详细信息,版权归作者所有!如果您觉得不妥请及时与我站联系,我们将立即删除。
3)本站提供的资料您只有阅读权,并不等于您得到文章的所有权,本站反对将我站提供的资料直接使用。