问题 填空题

在Java中,字符串是作为______出现的。

答案

参考答案:对象

解析:在Java中,字符串是作为对象出现的,由java.lang.String和java.lang.StringBuffer定义,分别用来处理长度不变和长度可变字符串,这两类都被定义为final。

改错题

此题要求改正所给短文中的错误,对标有题号的每一行作出判断;如无错误,在该行右边横线上画上一个勾(√);如有错误(每行只有一个错误),则按下列情况改正;

此行多一个词:把多余的词用斜线(﹨)划掉,在该行右边横线上写出该词,并也用斜线划掉。

    此行少一个词:在缺词处加一个漏字符号(∧),在该行右边横线写出该加的词。

此行错一个词: 在错的词下面画一横线,在该行右边横线上写出改正后的词。

注意:原行没有错的不要改。

Before lunch Allen happened to see a man fished in          小题1:________

a ditch about five metre outside a bar. Allen stopped          小题2:_______

curiously. All people passing over the man who was fishing   小题3:_______

regarded him like a foolish man. Allen’s heart went out        小题4:______

of him. He said kindly to fish-catcher, “Hello, will           小题5:_______

you please do me a favor and have a drink with me          小题6:________

in the bar?” The man gladly received his invitation.         小题7:____

After buying the man several cups soft-drinks,             小题8:________

Allen asked, “You are fishing there, right? May I           小题9:________

know how much fish you have caught this morning?”        小题10:______

“You are the number 8,” said the man humorously.

多项选择题