文档介绍:Java部门招聘试题
考试时间:1小时姓名:
试题1 (6,)
从供选择的答案中,选出应填入下面叙述中__内的最确切的解答,把相应编号写在答卷的对应栏内。
该二叉排序树的前序遍历序列为_A_,后序遍历序列为_B_,中序遍历为_C_。 解答:
A123456
B: 325641
C:321546
试题2⑷)
Given
the following code, which statements are true? ( 4 ) class
int valuel;
class
B extends A (
int value2;
1)
Class
extends class B.
2)
Class
is the superclass of class A.
3)
Class
inherits from class B.
4)
Class
is a subclass of class A.
5)
Objects
of class A have a member variable named value2.
试题3 (4,)
设有一个关系:DEPT (DNO, DNAME),如果要找出倒数第三个字母为W,并且至少包含4个字母的DNAME,则查询条件子句应写成
WHERE DNAME LIKE ( C )
A
B
C
D '_W_%'
试题4 (4,)
Which of these statements are true. Select correct answers. ( C )
try block may be followed by any number of finally blocks.
A try block must be followed by at least one finally and catch block.
If both catch and finally blocks are defined, catch block must precede the finally block.
试题5 (4,)
关于以下程序段,正确的说法是(C )。
String si="abc" +" def”
String s2=new String (si);
if (sl==s2)
System, out. printin( "= succeeded");
if (si. equals (s2))
System, out. println( equals() succeeded");
,行4不执行
行4执行,、行6都不执行
试题6 (3,)
Select the one correct answer. Which method defined in Integer class can be used to convert an Integer object to primitive int type.( A )
valueOf
intValue
getlnt
getlnteger
试题7 (6,)
下面是一个冒泡法对整数数组data升序排序的实现,请在空白处填写