报课、招生咨询电话:010-51268840/41

首页 > 计算机考试 > 试题汇编 > JAVA考试 > 试题 >
→论坛登陆 用户名  密码  
Java认证模拟题及分析2

作者: 发布时间:2008-05-21 11:34:34 来源:育路计算机考试频道

which of the following statements are true? 
1) methods cannot be overriden to be more private 
2) static methods cannot be overloaded 
3) private methods cannot be overloaded 
4) an overloaded method cannot throw exceptions not checked in the base class 
answer to question 16 
-------------------------------------------------------------------------------- 
question 17) 
what will happen if you attempt to compile and run the following code? 
class base {} 
class sub extends base {} 
class sub2 extends base {} 
public class cex{ 
public static void main(string argv[]){ 
base b=new base(); 
sub s=(sub) b; 


1) compile and run without error 
2) compile time exception 
3) runtime exception 

answer to question 17 

-------------------------------------------------------------------------------- 
question 18) 
which of the following statements are true? 
1) system.out.println( -1 >>> 2);will output a result larger than 10 
2) system.out.println( -1 >>> 2); will output a positive number 
3) system.out.println( 2 >> 1); will output the number 1 
4) system.out.println( 1 <<< 2); will output the number 4 

answer to question 18 

-------------------------------------------------------------------------------- 
question 19) 
what will happend when you attempt to compile and run the following code? 
public class tux extends thread{ 
static string sname = 'vandeleur'; 
public static void main(string argv[]){ 
tux t = new tux(); 
t.piggy(sname); 
system.out.println(sname); 

public void piggy(string sname){ 
sname = sname + ' wiggy'; 
start(); 

public void run(){ 
for(int i=0;i < 4; i++){ 
sname = sname + ' ' + i; 



1) compile time error 
2) compilation and output of 'vandeleur wiggy' 
3) compilation and output of 'vandeleur wiggy 0 1 2 3' 
4) compilation and probably output of 'vandeleur' but possible output of 'vandeleur 0 1 2 3' 
answer to question 19 
-------------------------------------------------------------------------------- 
question 20) 
what will be displayed when you attempt to compile and run the following code 
//code start 

    育路网
 
 
                                        
评论】【加入收藏夹】【 】【打印】【关闭
育路网2007年夏令营联展
 更多有关新闻:
 
·[考试动态2008年医师资格考试网上报名须知 ·[考试动态2008年医师资格考试3月10日开始网
·[考试动态卫生部医师资格考试委员会公告 ·[考试动态2008年医师考试于9月20至21进行
·[考试动态关于北京考区2008年度国家医师资 ·[考试动态崇文区卫生局关于北京考区2008年
·[考试动态丰台区卫生局关于北京考区2008年 ·[考试动态2008年上海市医师资格考试(考区
·[考试动态2008年医师资格考试(天津考区) ·[考试动态惠州市卫生局关于2008医师资格考
·[考试动态无锡市关于2008年医师资格考试网 ·[考试动态关于珠海市2008年医师资格考试的
·[考试动态韶关市关于2008年医师资格考试网 ·[考试动态深圳市关于2008年医师资格考试深
·[考试动态杭州市卫生局关于2008年医师资格 ·[考试动态丽水市关于2008年医师资格考试报
发表评论
用户名: 密码:
验证码: 匿名发表
课程搜索:
选择分类:
课程关键字:
课程 学校
 2008年首都高校秋季招生
北京理工大学2008年招生简章
北京文理研修学院2008年招生简章
北京建设大学2008年招生简章
北京中山学院2008年招生简章
北京城市学院2008年招生简章
培黎职业学院2008年招生简章
北京金融学院2008年招生简章
北京吉利大学2008年招生简章
北方工商管理学院2008年招生简章
 本周推荐课程
·初中起点雅思半年脱产 ·启德雅思6分冲刺课程
·新概念1+2册慢速精讲课 ·环球新托福100分强化
·北文王长喜四级强化班 ·英语四、六级培训课程
·海文考研数学课程 ·海文考研英语课程
·北大企业管理高级研修班 ·清华企业领导人研修班
·中美高中生交换项目 ·北工大中加学院2+2本科
·劳动和社会保障部物流师 ·物业管理师职业培训
·市场营销经理国际资格 ·现场管理实务培训
清华大学留学
中法管理硕士预科班
课程咨询热线:010-51268840 51268841
 最新新闻
·2008年北京在职公务员精讲周末班开班通知
·哈尔滨市一公务员请年假到灾区当心理医生
·网友解析08年5月17日安徽省公务员面试真题
·清华大学领导演讲口才与管理沟通高级精品班
·高效演讲与沟通技巧培训班
·高中毕业生出国留学 给自己机会给家庭机会
·IELTS成绩如何计算
·IELTS成绩如何计算
·2008年5月22日雅思考试预测
·公务员面试技巧:向考官解释问题时的六项注意
 育路社区            进入>>
 
学员报名服务中心: 北京北三环西路32号恒润中心1806(交通位置图
咨询电话:北京- 010-51268840/41 传真:010-51418040 上海-021-64392659、64397431
育路网-中国新锐教育社区: 北京站 | 上海站 | 郑州站| 武汉站
本站法律顾问: 邱清荣律师
北京育路互联科技有限公司版权所有 | 京ICP备05012189号