皮皮学,免费搜题
登录
搜题
【简答题】
在下列E类中【代码】输出结果是_____. import java.awt.*; import java.awt.event.*; public class E implements Runnable { StringBuffer buffer=new StringBuffer(); Thread t1,t2; E() { t1=new Thread(this); t2=new Thread(this); } public synchronized void addChar(char c) { if(Thread.currentThread()==t1) { while(buffer.length()==0) { try{ wait(); } catch(Exception e){} } buffer.append(c); } if(Thread.currentThread()==t2) { buffer.append(c); notifyAll(); } } public static void main(String s[]) { E hello=new E(); hello.t1.start(); hello.t2.start(); while(hello.t1.isAlive()||hello.t2.isAlive()){} System.out.println(hello.buffer); //【代码】 } public void run() { if(Thread.currentThread()==t1) addChar('A') ; if(Thread.currentThread()==t2) addChar('B') ; } }
拍照语音搜题,微信中搜索"皮皮学"使用
参考答案:
参考解析:
知识点:
.
..
皮皮学刷刷变学霸
举一反三
【多选题】下列符合市场营销观念的解释有
A.
企业营销活动以消费者需求为心
B.
营销目的通过满足需求达到长期获利
C.
营销的方法是实施整体营销
D.
我卖什么,就设法让顾客买什么
【单选题】某信用证要求提单的份数为“In Duplicate”,其意思为( )。
A.
一式两份
B.
一式三份
C.
一式四份
D.
一式五份
【单选题】?Look at questions 1-5. ?In each question, which sentence is correct? ?For each question, mark one letter (A, B, or C) on your Answer Sheet. MEMO To: Tom From: Mike The publicity leaflets for the new ...
A.
We might have the leaflets before 13 April.
B.
We won't have the leaflets before 13 April.
C.
We are sure to have the leaflets before 13 April.
【简答题】题目: 11.The City Bank will pa fifty pounds to _____ who helps the police to catch the man. A) someone B) nobody C) anyone D) somebody 题目: 12.When Paul Carson saw the big red American car coming tow...
【单选题】Kerri James is considering the purchase of a car.  She wants to buy the new VW Beetle, which will cost her $17,600. She will finance 90% of the purchase price (i.e., make a 10% down payment) at an int...
A.
$13,560
B.
$10,868
C.
$12,075
D.
$15,704
E.
$17,152
【多选题】下列符合市场营销观念的解释有( )。
A.
企业营销活动以消费者需求为心
B.
营销目的通过满足需求达到长期获利
C.
营销侧重的方法是实施整体营销方案
D.
基本营销策略是生产高技术产品
E.
市场营销活动的重点是促销
【单选题】孙子兵法•九变篇》:“故将有五危:必死,可杀也;必生,可虏也;忿速,可侮也;廉洁,可辱也;爱民,可烦也。”这里的“可杀”是什么意思?()
A.
可能被敌人诱杀
B.
可以杀死
C.
可能杀死
D.
可以杀敌
【单选题】某信用证要求提单的份数为 “In Duplicate” ,其意思为
A.
一式两份
B.
一式三份
C.
一式六份
D.
一式十份
【多选题】下列符合市场营销观念的解释有()。
A.
企业营销活动以消费者需求为中心
B.
营销目的通过满足需求达到长期获利
C.
营销侧重的方法是实施整体营销方案
D.
基本营销策略是生产高技术产品
【单选题】《孙子兵法•九变篇》:“故将有五危:必死,可杀也;必生,可虏也;忿速,可侮也;廉洁,可辱也;爱民,可烦也。”这里的“必生”是什么意思?()
A.
必须生存
B.
贪生怕死,临阵怯敌
C.
必定活着
D.
一定生存
相关题目: