当前位置:考试网  > 试卷库  > 计算机类  > 等级考试  > 计算机二级  > Web程序设计  > Strings=newString("xyz");创建了几个StringObject?
试题预览

Strings=newString("xyz");创建了几个StringObject?

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

答:两个或一个,” xyz”对应一个对象,这个对象放在字符串常量缓冲区,常量” xyz”不管出现多少遍,都是缓 冲区中的那一个。 New String 每写一遍,就创建一个新的对象,它一句那个常量” xyz”对象的内容来创建出一个新 String 对象。如果以前就用过’ xyz’,这句代表就不会创建” xyz”自己了,直接从缓冲区拿。

答案解析:

暂无解析

你可能感兴趣的试题

下列标记中不属于行内元素的是 ______。

CSS 主要用下列哪个 HTML标记构建页面布局 ?______

下面 ( )是静态网页文件的扩展名

实现一个单行文本输入域的 HTML代码是 _________。

设在表单中有一组复选钮标记,如下列代码 : 如果在 register.jsp 是取 city 的值,最适合的方法为( )。

1

热门试题 更多>
试题分类: 口语
练习次数:0次
试题分类: 初级(口语)
练习次数:1次
试题分类: 初级(口语)
练习次数:0次
试题分类: 初级(写作)
练习次数:0次
newweapontofightcancer 1.Britishscientistsarepreparingtolaunchtrialsofaradicalnewwaytofightcancer,whichkillstumoursbyinfectingthemwithviruseslikethecommoncold. 2.Ifsuccessful,virustherapycouldeventuallyformathirdpillaralongsideradiotherapyandchemotherapyinthestandardarsenalagainstcancer,whileavoidingsomeofthedebilitatingside-effects. 3.LeonardSeymour,aprofessorofgenetherapyatOxfordUniversity,whohasbeenworkingonthevirustherapywithcolleaguesinLondonandtheUS,willleadthetrialslaterthisyear.CancerResearchUKsaidyesterdaythatitwasexcitedbythepotentialofProfSeymour’spioneeringtechniques. 4.Oneofthecountry’sleadinggeneticists,ProfSeymourhasbeenworkingwithvirusesthatkillcancercellsdirectly,whileavoidingharmtohealthytissue."Inprinciple,you’vegotsomethingwhichcouldbemanytimesmoreeffectivethanregularchemotherapy,"hesaid. 5.Cancer-killingvirusesexploitthefactthatcancercellssuppressthebody’slocalimmunesystem."Ifacancerdoesn’tdothat,theimmunesystemwipesitout.Ifyoucangetavirusintoatumour,virusesfindthemaverygoodplacetobebecausethere’snoimmunesystemtostopthemreplicating.Youcanregarditasthecancer’sAchilles’heel." 6.Onlyasmallamountofthevirusneedstogettothecancer."Theyreplicate,yougetamillioncopiesineachcellandthecellburstsandtheyinfectthetumourcellsadjacentandrepeattheprocess,"saidProfSeymour. 7.Preliminaryresearchonmiceshowsthatthevirusesworkwellontumoursresistanttostandardcancerdrugs."It’saninterestingpossibilitythattheymayhaveanadvantageinkillingdrug-resistanttumours,whichcouldbequitedifferenttoanythingwe’vehadbefore." 8.Researchershaveknownforsometimethatvirusescankilltumourcellsandsomeaspectsoftheworkhavealreadybeenpublishedinscientificjournals.Americanscientistshavepreviouslyinjectedvirusesdirectlyintotumoursbutthistechniquewillnotworkifthecancerisinaccessibleorhasspreadthroughoutthebody. 9.ProfSeymour’sinnovativesolutionistomaskthevirusfromthebody’simmunesystem,effectivelyallowingthevirusestodowhatchemotherapydrugsdo-spreadthroughthebloodandreachtumourswherevertheyare.Thebighurdlehasalwaysbeentofindawaytodelivervirusestotumoursviathebloodstreamwithoutthebody’simmunesystemdestroyingthemontheway. 10."Whatwe’vedoneismakechemicalmodificationstothevirustoputapolymercoataroundit-it’sastealthviruswhenyouinjectit,"hesaid. 11.Afterthestealthvirusinfectsthetumour,itreplicates,butthecopiesdonothavethechemicalmodifications.Iftheyescapefromthetumour,thecopieswillbequicklyrecognisedandmoppedupbythebody’simmunesystem. 12.Thetherapywouldbeespeciallyusefulforsecondarycancers,calledmetastases,whichsometimesspreadaroundthebodyafterthefirsttumourappears."There’sanawfulstatisticofpatientsinthewest...withmalignantcancers;75%ofthemgoontodiefrommetastases,"saidProfSeymour. 13.Twovirusesarelikelytobeexaminedinthefirstclinicaltrials:adenovirus,whichnormallycausesacold-likeillness,andvaccinia,whichcausescowpoxandisalsousedinthevaccineagainstsmallpox.Forsafetyreasons,bothwillbedisabledtomakethemlesspathogenicinthetrial,butProfSeymoursaidheeventuallyhopestousenaturalviruses. 14.Thefirsttrialswilluseuncoatedadenovirusandvacciniaandwillbedeliveredlocallytolivertumours,inordertoestablishwhetherthetreatmentissafeinhumansandwhatdoseofviruswillbeneeded.Severalmoreyearsoftrialswillbeneeded,eventuallyalsoonthepolymer-coatedviruses,beforethetherapycanbeconsideredforuseintheNHS.Thoughtheapproachwillbeexaminedatfirstforcancersthatdonotrespondtoconventionaltreatments,ProfSeymourhopesthatonedayitmightbeappliedtoallcancers. Questions1-6 Dothefollowingstatementsagreewiththeinformationgiveninthereadingpassage?Forquestions1-6write TRUEifthestatementagreeswiththeinformation FALSEifthestatementcontradictstheinformation NOTGIVENifthereisnoinformationonthisinthepassage 1.Virustherapy,ifsuccessful,hasanadvantageineliminatingside-effects. 2.CancerResearchUKisquitehopefulaboutProfessorSeymour’sworkonthevirustherapy. 3.Viruscankillcancercellsandstopthemfromgrowingagain. 4.Cancer’sAchilles’heelreferstothefactthatvirusmaystaysafelyinatumorandreplicate. 5.Toinfectthecancercells,agooddealofvirusesshouldbeinjectedintothetumor. 6.Researchesonanimalsindicatethatviruscouldbeusedasanewwaytotreatdrug-resistanttumors. Question7-9 Basedonthereadingpassage,choosetheappropriateletterfromA-Dforeachanswer. 7.Informationaboutresearchesonviruseskillingtumorcellscanbefound (A)onTV (B)inmagazines (C)oninternet (D)innewspapers 8.Totreattumorsspreadingoutinbody,researcherstryto (A)changethebody’immunesystem (B)injectchemotherapydrugsintobloodstream. (C)increasetheamountofinjection (D)disguisethevirusesonthewaytotumors. 9.Whenthechemicalmodifiedvirusintumorreplicates,thecopies (A)willsoonescapefromthetumorandspreadout. (B)willbewipedoutbythebody’simmunesystem. (C)willbeimmediatelyrecognizedbytheresearchers. (D)willeventuallystopthetumorfromspreadingout. Questions10-13 Completethesentencesbelow.Chooseyouranswersfromthelistofwords.Youcanonlyuseeachwordonce. NBTherearemorewordsinthelistthanspacessoyouwillnotusethemall. Inthefirstclinicaltrials,scientistswilltryto……10……adenovirusandvaccinia,soboththeviruseswillbelesspathogenicthanthe……11…….Theseuncoatedviruseswillbeapplieddirectlytocertainareastoconfirmsafetyonhumanbeingsandtheright……12……needed.Theexperimentswillfirstlybe……13……tothetreatmentofcertaincancers
试题分类: 阅读
练习次数:11次
试题分类: 缮制与操作
练习次数:0次
试题分类: 理论与实务
练习次数:0次
试题分类: 口语
练习次数:0次
试题分类: 初级(写作)
练习次数:0次
扫一扫,手机做题