1 / 16
文档名称:

中兴软创笔试题 一、选择题.pdf

格式:pdf   页数:16页
下载后只包含 1 个 PDF 格式的文档,没有任何的图纸或源代码,查看文件列表

如果您已付费下载过本站文档,您可以点这里二次下载

分享

预览

中兴软创笔试题 一、选择题.pdf

上传人:vip_130_cool 2015/4/26 文件大小:0 KB

下载得到文件列表

中兴软创笔试题 一、选择题.pdf

相关文档

文档介绍

文档介绍:中兴软创笔试题
一、选择题
java 中, * 结果等于多少?
A、 B、60 C、 D、
a = ‘A’,请问 (a)打印出什么?
A、65 B、A C、a D、97
((“+1″))这句话执行会出
现什么异常?
A、Number Format Exception B、Null Point Exception
如何获得客户端的 IP 地址?
A、()
B、(“REMOTE_ADDR”)
a=new String(“foo”);
String b=new String(“foo”);
请问 (a1= =b1)打印出什么?
A、true B、false C、1 D、0
()的值是多少?
A、11 B、 C、12 D、
MenuBar 加入 Frame 中?
A、setMenu()
B、setMenuBar()
C、add()
D、addMenuBar()
of the following lines of code pile without
error?(多选题)
A、
int i=0;
if (i) {
(“Hi”);
}
B.
boolean b=true;
boolean b2=true;
if(b= =b2) {
(“So true”);
}
C.
int i=1;
int j=2;
if(i==1|| j==2) (“OK”);
D.
int i=1;
int j=2;
if (i==1 &| j==2) (“OK”);
路径太深文件名太长就无法读取文件,jsp 路径最大长度是多
少?
A、127 B、255 C、512 D、1024
the following code:(多选)
Integer s = new Integer(9);
Integer t = new Integer(9);
Long u = new Long(9);
Which test would return true?
A、(s==u)
B、(s==t)
C、((t))
D、((9))
E、((new Integer(9))
二、填空题(4′×5,每题4′)
(1) String s = “Hello”;
String s1 = s;
s = s + ” world!”;
请问 s 的值是____Hello Would!_ ________, s1 的值是___Hello_
________。
(2)一个数据库表 A(name varchar(10),age int),请写出一个 SQL
语句,按照 age 排序查出年龄最大的10条记录数___select * top 10
from A order by age DESC
______________________________________ 。
(3)String str = “hello world!”,请问 substring(2,5)的值是
__llo_ ______。
(4)String str = “abcdef”,int i1=(‘d’,4),int
i2=(‘d’,2),请问 i1=_____-1_ ;i2=__3__。
(5)hashmap 和 hashtable 区别
_hashmap 允许有空值,hashtable 不允许,hasptable 允许线程同步
___________________________________________________________
__________
三、改错题(10′×2)
(1)
interface A {
int y = 0;
}
class B {
int x = 1;
}
class C extends B implements A {
publ