当前位置:考试网  > 试卷库  > 学历类  > 自考  > 自考专业(计算机网络)  > Java语言程序设计一  > 请写出用Thread类的子类创建线程并启动线程所包含的步骤。
试题预览

请写出用Thread类的子类创建线程并启动线程所包含的步骤。

查看答案
收藏
纠错
正确答案:

(1)从Thread类派生出一个子类.

(2)实现run()。

(3)用该类创建一个对象。

(4)用Start()方法启动线程。

答案解析:

暂无解析

你可能感兴趣的试题

某Java程序用javax.swing包中的类JFileChooser来实现打开和保存文件对话框。该程序通过文件对话框首先获得的信息是()。

请写出Java语言中标识符的命名规则。

以下数据类型转换中,必须进行强制类型转换的是()。

某Java程序的类A要利用Swing创建框架窗口,则A需要继承的类是()。

以下专门用于字符流处理的类是()。

热门试题 更多>
试题分类: 口语
练习次数:0次
试题分类: 初级(口语)
练习次数:0次
试题分类: 初级(口语)
练习次数:0次
Howshopscanexploitpeople'sherdmentalitytoincreasesales 1.ATRIPtothesupermarketmaynotseemlikeanexerciseinpsychologicalwarfare—butitis.Shopkeepersknowthatfillingastorewiththearomaoffreshlybakedbreadmakespeoplefeelhungryandpersuadesthemtobuymorefoodthantheyhadintended.Stockingthemostexpensiveproductsateyelevelmakesthemsellfasterthancheaperbutlessvisiblecompetitors.Nowresearchersareinvestigatinghow“swarmintelligence”(thatis,howants,beesoranysocialanimal,includinghumans,behaveinacrowd)canbeusedtoinfluencewhatpeoplebuy. 2.AtarecentconferenceonthesimulationofadaptivebehaviourinRome,Zeeshan-ul-hassanUsmani,acomputerscientistfromtheFloridaInstituteofTechnology,describedanewwaytoincreaseimpulsebuyingusingthisphenomenon.Supermarketsalreadyencourageshopperstobuythingstheydidnotrealisetheywanted:forinstance,byplacingeverydayitemssuchasmilkandeggsatthebackofthestore,forcingshopperstowalkpastothertemptinggoodstoreachthem.MrUsmaniandRonaldoMenezes,alsooftheFloridaInstituteofTechnology,setouttoenhancethistendencytobuymorebyplayingontheherdinstinct.Theideaisthat,ifacertainproductisseentobepopular,shoppersarelikelytochooseittoo.Thechallengeistokeepcustomersinformedaboutwhatothersarebuying. 3.Entersmart-carttechnology.InMrUsmani'ssupermarketeveryproducthasaradiofrequencyidentificationtag,asortofbarcodethatusesradiowavestotransmitinformation,andeverytrolleyhasascannerthatreadsthisinformationandrelaysittoacentralcomputer.Asacustomerwalkspastashelfofgoods,ascreenontheshelftellshimhowmanypeoplecurrentlyintheshophavechosenthatparticularproduct.Ifthenumberishigh,heismorelikelytoselectittoo. 4.MrUsmani's“swarm-moves”modelappealstosupermarketsbecauseitincreasessaleswithouttheneedtogivepeoplediscounts.Anditgivesshoppersthesatisfactionofknowingthattheyboughtthe“right”product—thatis,theoneeveryoneelsebought.Themodelhasnotyetbeentestedwidelyintherealworld,mainlybecauseradiofrequencyidentificationtechnologyisnewandhasonlybeeninstalledexperimentallyinsomesupermarkets.ButMrUsmanisaysthatbothWal-MartinAmericaandTescoinBritainareinterestedinhiswork,andtestingwillgetunderwayinthespring. 5.Anotherrecentstudyonthepowerofsocialinfluenceindicatesthatsalescould,indeed,beboostedinthisway.MatthewSalganikofColumbiaUniversityinNewYorkandhiscolleagueshavedescribedcreatinganartificialmusicmarketinwhichsome14,000peopledownloadedpreviouslyunknownsongs.Theresearchersfoundthatwhenpeoplecouldseethesongsrankedbyhowmanytimestheyhadbeendownloaded,theyfollowedthecrowd.Whenthesongswerenotorderedbyrank,butthenumberoftimestheyhadbeendownloadedwasdisplayed,theeffectofsocialinfluencewasstilltherebutwaslesspronounced.Peoplethusfollowtheherdwhenitiseasyforthemtodoso. 6.InJapanachainofconvenienceshopscalledRanKingRanQueenhasbeenorderingitsproductsaccordingtosalesdatafromdepartmentstoresandresearchcompanies.Theshopssellonlythemostpopularitemsineachproductcategory,andtherankingsareupdatedweekly.Icosystem,acompanyinCambridge,Massachusetts,alsoaimstoexploitknowledgeofsocialnetworkingtoimprovesales. 7.Andthepsychologythatworksinphysicalstoresisjustaspotentontheinternet.OnlineretailerssuchasAmazonareadeptattellingshopperswhichproductsarepopularwithlike-mindedconsumers.Evenintheprivacyofyourhome,youcanstillbepartoftheswarm. Questions1-6 Completethesentencesbelowwithwordstakenfromthereadingpassage.UseNOMORETHANTHREEWORDSforeachanswer. 1.Shopownersrealizethatthesmellof_______________canincreasesalesoffoodproducts. 2.Inshops,productsshelvedatamorevisiblelevelsellbettereveniftheyaremore_______________. 3.AccordingtoMr.Usmani,withtheuseof“swarmintelligence”phenomenon,anewmethodcanbeappliedtoencourage_______________. 4.Onthewaytoeverydayitemsatthebackofthestore,shoppersmightbetemptedtobuy_______________. 5.Ifthenumberofbuyersshownonthe_______________ishigh,othercustomerstendtofollowthem. 6.Usingthe“swarm-moves”model,shopownersdonothavetogivecustomers_______________toincreasesales.
试题分类: 阅读
练习次数:1次
扫一扫,手机做题