您的位置:
首页 >> 资讯资料 >> IT培训 >> 正文:SCJP考试题310-025原题及解答

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

    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?   
 A. s >> = 2;  
     B. char c = s[3];  
     C. s += "there";  
     D. int i = s.length();  
     E. s = s + 3;  

     CDE.  

     4. Which statements are true about listeners?  

     A. The return value from a listener is of boolean type.  
     B. Most components allow multiple listeners to be added.  
     C. A copy of the original event is passed into a listener method.  
     D. If multiple listeners are added to a single component, they all must all
be friends to each other.  
     E. If the multiple listeners are added to a single component, the order [in]
 which listeners are called is guaranteed].  

     BC.  

     5. What might cause the current thread to stop executing.  

     A. An InterruptedException is thrown.  
     B. The thread executes a wait() call.  
     C. The 
thread constructs a new Thread.  
     D. A thread of higher priority becomes ready.  
     E. The thread executes a waitforID() call on a MediaTracker.  

     ABDE. 
【作者:本站编辑┊来源:学习联盟┊2005-07-12】TAGS:
评论与咨询 内容报错
姓名: 电话: 邮箱: 地址:

  • ·本咨询平台是部分培训机构与本站指定的网上报名、咨询的专用平台,您可以通过此处提交您的信息,我们或该机构会根据您所提交的信息及时给予回复;
  • ·为了更好的问您服务,请填写您真实的姓名和相关联系方式,以便我们能及时给您答复;
  • ·不得提交有关违反国家互联网规定的不良信息,对于违规者我们有权追究你的法律责任!若有任何问题请 联系我们
关于我们 | 服务条款 | 广告服务 | 客服中心 | 网站导航 - 设为首页 - 收藏本站
Copyright © 2006-2008 www.0512edu.com.cn All Rights Reserved
苏州培训资讯网 版权所有
Powered By:AspArticle2.0 在远方