回到考试中心首页|兰州学生网LOGO
首页  |  外语考试  |  IT认证  |  基础教育  |  甘肃省专升本  |  学历考试  |  硕士学历  |  公务员  |  会计考试  |  职业资格  |  医学医药  |  建筑工程
会员登录
热门文章
·二级建造师模拟试题一套
·公务员面试自我介绍范文
·践行社会主义荣辱观 党课讲稿
·八荣八耻,从我做起!
·临床执业医师考试真题完全版(一)
·学习八荣八耻心得体会(完善版)
·八荣八耻演讲稿
·八荣八耻歌(歌词)
·英文自我介绍
·中学:教师资格认证考试全真模拟试卷和答案
·八荣八耻中学生演讲稿
·小学教师资格考试教育学仿真试题之一
·八荣八耻手抄报内容
·《八荣八耻歌》歌词 伴奏及曲牌
·暑期实践报告
广告推荐
Java认证经典模拟题(onlyfortrainning)
作者: 来源: 责任编辑: 更新日期:2006-3-27 19:45:47 浏览:
Java认证经典模拟题(onlyfortrainning)

int i=0xFFFFFFF1;
int j=~i;
}
}
What is the value decimal value of j at line 5?
A.0 B.1 C.14 D.-15
F.An error at line 3 causes compilation to fail
G.An error at line 4 causes compilation to fail

90. Which two demonstrate an “is a” relationship?(2)
A.public interface Person{}
public class Employee extends Person{}
B.public interface Shape{}
public interface Retangle extends Shape{}
C.public interface Color{}
public class Shape{private Color color;}
D.public class Species{}
public class Animal{private Species species;}
E.interface Component{}
class Container implements Component{
private Component [] children;
}

91.Given
Package foo;

public class Outer{
public static class Inner{
}
}
Which statement is true?
A.An instance of the Inner class can be constructed with “new Outer.Inner():
B.An instance of the Inner class cannot be constructed outside of package foo;
C.An instance of the Inner class can only be constructed from within the Outer class.
D.From within the package bar, an instance of the Inner class can be constructed with “new Inner()”.

92.Which statement is true?
A.An anonymous inner class may be declared as final.
B.An anonymous inner class can be declared as private.
C.An anonymous inner class can implement multiple interfaces .
D.An anonymous inner class can access final variables in any enclosing scope.
E.Construction of an instance of a static inner class requires an instance of the enclosing outer class.

93.Which statement is true?
A.If only one thread is blocked in the wait method of an object, and another thread executes the notify method on that same object , then the first thread immediately resumes execution.
B.If a thread is blocked in the wait method of an object, and another thread executes the notify method on the same object, it is still possible that the first thread might never resume execution.
C.If a thread is blocked in the wait method of an object, and another thread executes the notify method on the same object, then the first thread definitely resumes execution as a direct and sole consequence of the notify call.
D.If two threads are blocked in the wait method of one object , and another thread executes the notify method on the same object, then the thread that executed the wait call first definitely resumes execution as a direct and sole consequence of the notify call.

94. You are assigned the task of building a Panel containing a TextArea at the top, a Label directly below it, and a Button directly Below the Label. If the three components are added directly to the Panel, which layout manager can the Panel use to ensure that the TextArea absorbs all of the free vertical space when the Panel is resized?
A.GridLayout B. FlowLayout C. GridBagLayout D. CardLayout E. BorderLayout

95. Given:
String foo =”ABCDE”
foo.substring(3);
foo.concat(“XYZ”);

What is the value of the variable foo at line 4?
Shortanswer:

96. Which statement about static inner classes is true?
A.An anonymous class can be declared as static
B.A static inner class cannot be a static member of the outer class
C.A static inner class does not require an instance of the enclosing class
D.Instance members of a static inner class can be referenced using the class name of the static inner class

97. Which statement is true for the class java.util.ArrayList?
A.The elements in the collection are ordered.
B.The collection is guaranteed to be immutable
C.The elements in the collection are guaranteed to be unique
D.The elements in the collection are accessed using a unique key

本文章共11页,当前在第9页  1  2  3  4  5  6  7  8  9  10  11  

打印本文 收藏本文 返回顶部 关闭窗口
   考试中心分类导航
      外语考试 | 英语四六级 | 专四专八 | 职称英语 | 口译笔译 | 商务英语 | 实用英语 | 托福 | 雅思 | GRE | LSAT | PETS | GMAT
      IT认证 | 计算机等级 | 软件程序员 | 微软认证 | 思科认证 | Oracle | Linux | JAVA
      甘肃省专升本 | 专升本动态 | 招生计划 | 考试大纲 | 专升本试题    基础教育 | 中考 | 高考    学历考试 | 成人高考 | 自学考试
      硕士学历 | 考研 | MBA/EMBA | 在职硕士 | 法律硕士 | 会计硕士 | 工程硕士    公务员 | 考试动态 | 考试指导 | 考试真题 | 模拟题 | 技巧心得
      医学医药 | 执业护士 | 执业医师 | 执业药师    会计考试 | 资产评估 | 经济师 | 从业资格 | 会计职称 | 注会 | 注税 | 高级会计 | ACCA/CAT | 精算师
      职业资格 | 保险考试 | 报关员 | 外销员 | 物流师 | 报检员 | 司法考试 | 律师考试 | 商务师 | 人力资源 | 电子商务 | 导游资格 | 证券考试 | 教师资格
      建筑工程 | 岩土师 | 室内设计师 | 质量资格 | 房产估价 | 土地估价 | 建造师 | 造价师 | 建筑师 | 结构师 | 监理师 | 咨询师 | 城市规划 | 安全工程师
设为首页   |    收藏本站   |    网站帮助   |    网站地图   |    意见反馈   |    关于我们   |    广告服务   |    联系办法
陇ICP备05005179 不良信息举报