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

SCJP考试题310-025原题及解答


日期:
2005-4-17 9:31:00
来源:
学习联盟
作者:
不详
编辑
dongfangshuo
    1. Which statement are characteristics of the >> and >>> operators. 

     A. >> performs a shift 
     B. >> performs a rotate 
     C. >> performs a signed and >>> performs an unsigned shift 
     D. >> performs an unsigned and >>> performs a signed shift 
     E. >> should be used on integrals and >>> should be used on floating point types 

     C. 

     2. Given the following declaration 

     String s = "Example"; 

     Which are legal code? 

     A. s >>> = 3; 
     B. s[3] = "x"; 
     C. int i = s.length(); 
     D. String t = "For " + s; 
     E. s = s + 10; 

     CDE. 

     3. Given the following declaration 

     String s = "hello"; 

     Which are legal code? 

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

关闭窗口

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