首页 > 自考
题目内容 (请给出正确答案)
[主观题]

使用ServerSocket类和Socket类编写一个GUI程序,实现一个简单的聊天程序,界面如图18-1和图18-5

所示。

使用ServerSocket类和Socket类编写一个GUI程序,实现一个简单的聊天程序,界面如图1

查看答案
答案
收藏
如果结果不匹配,请 联系老师 获取答案
您可能会需要:
您的账号:,可能还需要:
您的账号:
发送账号密码至手机
发送
安装优题宝APP,拍照搜题省时又省心!
更多“使用ServerSocket类和Socket类编写一个GUI…”相关的问题
第1题
Thousands of years ago, ten of our very distant ancestors were hungry. They went out and p
icked berries or dug up roots to eat. Four of them chose poisonous food and died. The remaining six noticed that their food was safe to eat. They told their children, who, in turn, passed the message on to their descendants. In this way, habit became a vital factor in the survival of mankind : if you ate the right plant, you lived; if you wanted to make your own experiments, you would probably die.

The importance of habit on the survival of the human species is an interesting matter. Even today, most of us hesitate when we are invited to eat a new type of food or drink something we have not tasted before. Even if the food or drink is offered by a friend, we are usually not at all anxious to experiment and accept the offer.

When you get up tomorrow morning, notice which shoe or sock you put on first. Then notice which one you put on first on other days. You may discover that (a) you tend to put on one shoe or sock first every day, and that (b) if you are right-handed, you usually deal with your left shoe or sock first. If you try to change this habit, you may find it uncomfortable or annoying, and you will soon return to your old habit.

When it comes to other matters, we often follow a fixed pattern. We sleep in one or two favorite ways. We often follow familiar routes even when they are not the shortest or best. We often wear a watch on the same wrist even when there is no real reason for doing so. (83)In hundreds of other ways, we show that we are creatures of habit, following fixed patterns of behavior. This characteristic can help us to survive but it can be a barrier to progress too. We must be alert and not let a beneficial factor become a harmful one.

The best title for this passage might be _____.

A.Habit—a Barrier to Progress

B.The Survival of Mankind

C.Various Patterns of Human Behavior

D.We Are Creatures of Habit

点击查看答案
第2题
One fine afternoon I was walking along Fifth Street, when I remembered that it was necessa
ry to buy a pair of socks. Why I wished to buy only one pair is unimportant. I turned into the first sock shop that caught my eye, and a boy clerk who could not have been more than seventeen years old came forward, "What can I do for you, sir?" "I wish to buy a pair of socks." His eyes shone. There was a lot of excitement in his voice, "Did you know that you had come into the finest place in the world to buy socks?" I had no idea of that, as my entrance had been accidental(偶然的). "Come with me," said the boy, eagerly. I followed him to the back of the shop, and he began to pull down from the shelves box after box showing their socks for my choice.

"Hold on, lad, 1 am going to buy only one pair? "I know that," said he, "but I want you to see how beautiful these are. Aren't they wonderful!' There was on his face an expression of seriousness and pride and delight as if he were showing to me the secret of his religion(宗教). I became far more interested in him than in the socks. I looked at him in surprise. "My friend," said I, "if you can keep this up, if this is not just from a new job, if you can keep up this high spirit and excitement day after day, in ten years you will win every sock shop in the United States."

What did the writer want to buy one fine afternoon?

A.A pair of shoes.

B.A pair of socks.

C.Two pairs of shoes.

D.Two pairs of socks.

点击查看答案
第3题
司盘类和吐温类表面活性剂不能混合使用。()
点击查看答案
第4题
Swing GUI使用两种类型的类,即GUI类和【 】支持类。

点击查看答案
第5题
若想在程序中使用JLabel类,则该程序可以使用unport【 】.JLabel;语句引入JLabel类。

点击查看答案
第6题
使用已经存在的类作为基础建立新类的定义,这种技术叫做类的______。

点击查看答案
第7题
使用()修饰符能调用未实例化得类中的方法。

点击查看答案
第8题
要引入java.net包中的URL公有类,需要使用语句【 】。

点击查看答案
第9题
在程序运行过程中,经常需要扩展数组,则应该使用java.util.【 】类。

点击查看答案
第10题
编写一个名为MyInteger的类,该类的UML图如图4-4所示。提示:在UML类图中,静态成员使用下画线进行
标识。请编写应用程序测试该类的方法的使用。

点击查看答案
第11题
血清钾增高见于() A.使用氯噻嗪类利尿药B.大量出汗C.肾上腺皮质功能减退D.使用肾上腺皮质激素E.

血清钾增高见于()

A.使用氯噻嗪类利尿药

B.大量出汗

C.肾上腺皮质功能减退

D.使用肾上腺皮质激素

E.醛固酮增多症

点击查看答案
退出 登录/注册
发送账号至手机
密码将被重置
获取验证码
发送
温馨提示
该问题答案仅针对搜题卡用户开放,请点击购买搜题卡。
马上购买搜题卡
我已购买搜题卡, 登录账号 继续查看答案
重置密码
确认修改