itgle.com

IntheeventofaGSSfailureinaGSScluster,whichistrue?()A.ThecurrentconnectionsarereroutedviathebackupGSSB.SecondaryGSScannotbeusedtoconfiguretheGSSclusterC.AllremainingGSSsintheclustercontinuerespondingtoanynewqueriesD.AllrecordsintheGSSdatabaseareflushedandr

题目
IntheeventofaGSSfailureinaGSScluster,whichistrue?()

A.ThecurrentconnectionsarereroutedviathebackupGSS

B.SecondaryGSScannotbeusedtoconfiguretheGSScluster

C.AllremainingGSSsintheclustercontinuerespondingtoanynewqueries

D.AllrecordsintheGSSdatabaseareflushedandreconstructedagainusinganewmasterGSS


相似考题
更多“IntheeventofaGSSfailureinaGSScluster,whichistrue?() ”相关问题
  • 第1题:

    classClassA{publicintnumberOfinstances;protectedClassA(intnumberOfinstances){this.numberOflnstances=numberOfinstances;}}publicclassExtendedAextendsClassA{privateExtendedA(intnumberOfinstances){super(numberOflnstances);}publicstaticvoidmain(String[]args){ExtendedAext=newExtendedA(420);System.out.print(ext.numberOflnstances);}}Whichistrue?()

    A.420istheoutput.

    B.Anexceptionisthrownatruntime.

    C.Allconstructorsmustbedeclaredpublic.

    D.ConstructorsCANNOTusetheprivatemodifier.

    E.ConstructorsCANNOTusetheprotectedmodifier.


    参考答案:A

  • 第2题:

    voidwaitForSignal(){Objectobj=newObject();synchronized(Thread.currentThread()){obj.wait();obj.notify();}}Whichistrue?()

    A.ThiscodemaythrowanInterruptedException.

    B.ThiscodemaythrowanIllegalStateException.

    C.ThiscodemaythrowaTimeoutExceptionaftertenminutes.

    D.Thiscodewillnotcompileunless“obj.wait()”isreplacedwith“((Thread)obj).wait()”.

    E.Reversingtheorderofobj.wait()andobj.notify()maycausethismethodtocompletenormally.

    F.Acalltonotify()ornotifyAll()fromanotherthreadmaycausethismethodtocompletenormally.


    参考答案:B

  • 第3题:

    Giventhismethodinaclass:publicStringtoString(){StringBufferbuffer=newStringBuffer();buffer.append(?<?);buffer.append(this.name);buffer.append(?>?);returnbuffer.toString();}Whichistrue?()

    A.ThiscodeisNOTthread-safe.

    B.TheprogrammercanreplaceStringBufferwithStringBuilderwithnootherchanges.

    C.ThiscodewillperformwellandconvertingthecodetouseStringBuilderwillnotenhancetheperformance.

    D.Thiscodewillperformpoorly.Forbetterperformance,thecodeshouldberewritten:return“<“+this.name+“>”;


    参考答案:B

  • 第4题:

    publicclassPerson{privatename;publicPerson(Stringname){this.name=name;}publicinthashCode(){return420;}}Whichistrue?()

    A.ThetimetofindthevaluefromHashMapwithaPersonkeydependsonthesizeofthemap.

    B.DeletingaPersonkeyfromaHashMapwilldeleteallmapentriesforallkeysoftypePerson.

    C.InsertingasecondPersonobjectintoaHashSetwillcausethefirstPersonobjecttoberemovedasaduplicate.

    D.ThetimetodeterminewhetheraPersonobjectiscontainedinaHashSetisconstantanddoesNOTdependonthesizeofthemap.


    参考答案:A

  • 第5题:

    Refertotheexhibit.AccordingtotheequipmenttabinCiscoUCSManager,whichistrue?()

    A.Aisanuplinkport,Bisafabricport,Cisaserverport,Disabackplaneport,EisaDCEinterface,andFisavNIC

    B.Aisanuplinkport,Bisaserverport,Cisafabricport,Disabackplaneport,EisaDCEinterface,andFisavNIC

    C.Aisanuplinkport,Bisafabricport,Cisabackplaneport,Disaserverport,EisaDCEinterface,andFisavNIC

    D.Aisanuplinkport,Bisaserverport,Cisafabricport,DisaDCEinterface,Eisabackplaneport,andFisavNIC

    E.Aisanfabricport,Bisadownlinkport,Cisanuplinkport,Disaserverport,EisaVICinterface,andFisavNIC


    参考答案:B

  • 第6题:

    classSuperClass{2.publicageta(){3.returnnewa();4.}5.}6.classSubClassextendsSuperClass{7.publicbgeta(){8.returnnewb();9.}10.}Whichistrue?()

    A.Compilationwillsucceedifaextendsb.

    B.Compilationwillsucceedifbextendsa.

    C.Compilationwillalwaysfailbecauseofanerrorinline7.

    D.Compilationwillalwaysfailbecauseofanerrorinline8.


    参考答案:B

  • 第7题:

    publicclassTestSevenextendsThread{privatestaticintx;publicsynchronizedvoiddoThings(){intcurrent=x;current++;x=current;}publicvoidrun(){doThings();}}Whichistrue?()

    A.Compilationfails.

    B.Anexceptionisthrownatruntime.

    C.Synchronizingtherun()methodwouldmaketheclassthread-safe.

    D.Thedatainvariable“x”areprotectedfromconcurrentaccessproblems.

    E.DeclaringthedoThings()methodasstaticwouldmaketheclassthread-safe.

    F.WrappingthestatementswithindoThings()inasynchronized(newObject()){}blockwouldmaketheclassthread-safe.


    参考答案:E

  • 第8题:

    23.intz=5;24.25.publicvoidstuff1(intx){26.assert(x>0);27.switch(x){28.case2:x=3;29.default:assertfalse;}}30.31.privatevoidstuff2(inty){assert(y<0);}32.33.privatevoidstuff3(){assert(stuff4O);}34.35.privatebooleanstuff4(){z=6;returnfalse;}Whichistrue?()

    A.Alloftheassertstatementsareusedappropriately.

    B.Onlytheassertstatementonline31isusedappropriately.

    C.Theassertstatementsonlines29and31areusedappropriately.

    D.Theassertstatementsonlines26and29areusedappropriately.

    E.Theassertstatementsonlines29and33areusedappropriately.

    F.Theassertstatementsonlines29,31,and33areusedappropriately.

    G.Theassertstatementsonlines26,29,and31areusedappropriately.


    参考答案:C

  • 第9题:

    publicclassCreditCard{privateStringcardlD;privateIntegerlimit;publicStringownerName;publicvoidsetCardlnformation(StringcardlD,StringownerName,28.Integerlimit){this.cardlD=cardlD;this.ownerName=ownerName;this.limit=limit;}}Whichistrue?()

    A.Theclassisfullyencapsulated.

    B.Thecodedemonstratespolymorphism.

    C.TheownerNamevariablebreaksencapsulation.

    D.ThecardlDandlimitvariablesbreakpolymorphism.

    E.ThesetCardlnformationmethodbreaksencapsulation.


    参考答案:C

  • 第10题:

    单选题
    55.int[]x={1,2,3,4,5}; 56.inty[]=x; 57.System.out.println(y[2]); Whichistrue?()
    A

    Line 57 will print the value 2.

    B

    Line 57 will print the value 3.

    C

    Compilation will fail because of an error in line 55.

    D

    Compilation will fail because of an error in line 56.


    正确答案: D
    解析: 暂无解析