题目内容

线程中要周期性执行完成某个功能,需要定义个死循环,然后使用Thread.sleep()方法,周期性的休眠线程。在sleep方法中,其参数是一个整数。这个参数的意义是?

A. 休眠的秒数
B. 休眠的毫秒数
C. 休眠的微秒数

查看答案
更多问题

在按钮上设置点击事件,代码量最少的方式是?

A. 设置onClick属性的值为某个方法名
B. 使用匿名内部类
C. 使用是实现接口
D. 使用内部类对象

JAVA中线程创建方式有两种,但每一种方法都必须实现一个方法。这个方法的名字是

A. run
B. loop
C. start
D. play

Fill in the blanks with the given words in the box. Change the form where necessary.scarycompoundmultiplerefer toenlistblock1. My view wasby a tall man in front of me.2. The embassy has been closed to the public because of a bomb threat.3. She sustained injuries in the accident.4. In her autobiography she occasionally her unhappy schooldays.5. Wesome people to help prepare the food.6. She’d had a dream in whichmonsters were chasing her.

Fill in the blanks with the given words. Change the form where necessary.1. The majority of the population lives in one large apartmenton the center of the island.(complex)2. I include cleaning and paper products in my groceryas well.(budgeting)3. I live on my own in aflat.( studio)4. She was found guilty on three charges ofthe speed limit.(exceed)5. We cannot buy food, clothes and pay for rent andon $20 a week.(utility)6. The police reportthat he was arrested for allegedly assaulting his wife.(state)

答案查题题库