多选题Which two scenarios are NOT safe to replace a StringBuffer object with a StringBuilder object?()AWhen using versions of Java technology earlier than 5.0.BWhen sharing a StringBuffer among multiple threads.CWhen using the java.io class StringBufferInputStream.DWhen you plan to reuse the StringBuffer to build more than one string.

多选题
Which two scenarios are NOT safe to replace a StringBuffer object with a StringBuilder object?()
A

When using versions of Java technology earlier than 5.0.

B

When sharing a StringBuffer among multiple threads.

C

When using the java.io class StringBufferInputStream.

D

When you plan to reuse the StringBuffer to build more than one string.


参考解析

解析: 暂无解析

相关考题:

Which two scenarios are NOT safe to replace a StringBuffer object with a StringBuilder object?() A.When using versions of Java technology earlier than 5.0.B.When sharing a StringBuffer among multiple threads.C.When using the java.io class StringBufferInputStream.D.When you plan to reuse the StringBuffer to build more than one string.

Which two scenarios would benefit the most from TCP Acceleration? ()(Choose two.) A. low-latency networksB. high-latency networksC. long-haul, low-bandwidth linksD. long-haul, high-bandwidth links

A server configured with RAID 5 has recently suffered from two simultaneous disk failures. Which of the following would be required to bring the server back to operational status?() A. Break mirror arrayB. Replace cache batteryC. Replace hot standbyD. Restore from back upE. Replace defective hard drives

During the day, a dredge will indicate the side on which it is safe to pass by displaying_____.A.two balls in a vertical lineB.two diamonds in a vertical lineC.a single black ballD.no shape is shown during the day

Whichtwo scenarios are NOT safe to replace a StringBuffer object with a StringBuilder object?()A、When using versions of Java technology earlier than 5.0.B、When sharing a StringBuffer among multiple threads.C、When using the java.io class StringBufferInputStream.D、When you plan to reuse the StringBuffer to build more than one string.E、Enitiation of separate design processes to the separation of users

public class TestString3 {  public static void main(String[] args) {  // insert code here  System.out.println(s);  }  }  Which two code fragments, inserted independently at line 3, generate the output 4247?()A、 String s = “123456789”; s = (s-”123”).replace(1,3,”24”) - “89”;B、 StringBuffer s = new StringBuffer(”123456789”); s.delete(0,3).replace( 1,3, “24”).delete(4,6);C、 StringBuffer s = new StringBuffer(”123456789”); s.substring(3,6).delete( 1 ,3).insert(1, “24”);D、 StringBuilder s = new StringBuilder(”123456789”); s.substring(3,6).delete( 1 ,2).insert( 1, “24”);E、 StringBuilder s = new StringBuilder(”123456789”); s.delete(0,3).delete( 1 ,3).delete(2,5).insert( 1, “24”);

Public class test (  Public static void stringReplace (String text)  (  Text = text.replace (‘j’ , ‘i’);  )  public static void bufferReplace (StringBuffer text)  (  text = text.append (“C”)  )   public static void main (String args[]}  (  String textString = new String (“java”);  StringBuffer text BufferString = new StringBuffer (“java”);  stringReplace (textString);  BufferReplace (textBuffer);  System.out.printLn (textString + textBuffer);  )  )   What is the output?()

A server configured with RAID 5 has recently suffered from two simultaneous disk failures. Which of the following would be required to bring the server back to operational status?()A、Break mirror arrayB、Replace cache batteryC、Replace hot standbyD、Restore from back upE、Replace defective hard drives

Which of the following will reset the BIOS settings?() (Select TWO).A、Unplug the CMOS battery.B、Unplug the power supply.C、Switch on the reset jumper.D、Replace the RAM.E、Unplug the CPU.

A technician is cleaning spyware from a Windows XP machine. Because of the infections, the unitcannot browse the Internet to obtain anti-virus updates.Which of the following is the BEST course ofaction? ()(Select TWO).A、Boot into safe mode and format the drive.B、Install a pop-up blocker and update Internet Explorer.C、Boot to Safe Mode with Networking and attempt updates.D、Boot into safe mode and perform CHKDSK.E、Apply updates manually by downloading the definition files on another machine.

A technician installed a new application on a Windows XP desktop. After the application wasinstalled, the technician rebooted the desktop and received a bluescreen error. Which of thefollowing steps should the technician perform?() (Select TWO).A、Boot into Safe ModeB、Replace the motherboardC、Uninstall the applicationD、Replace the hard driveE、Install more RAM

A server configured with RAID 5 has recently suffered from two simultaneous disk failures. Which of the following would be required to bring the server back to operational status? ()A、 Break mirror arrayB、 Replace cache batteryC、 Replace hot standbyD、 Restore from backupE、 Replace defective hard drives

Which of the following scenarios would dictate the use of a 64-bit processor instead of a 32-bit processor?()A、Implementation of access control lists (ACLs)B、Implementation of more than two network cardsC、Implementation of iSCSI attached storageD、Implementation of more than 4GB of RAM

A laser printer has an error tray two paper jam but tray two does not have any paper in it. Which of the following should the technician do FIRST? ()A、Replace the tray two paper sensor and run the printer self test.B、Remove the tray two paper sensor and clean the printhead.C、Check the tray two paper sensors for blockage and run the printer self test.D、Check the tray two paper rollers for blockage, clean the printhead, and run the printer self test.

A printer is consistently printing random characters on every page. Which of the following should be done? ()(Select TWO).A、Power cycle the printerB、Replace the fuserC、Check for paper jamsD、Clean the print drumE、Check the printer driver

An x445 with two 3.0GHz DP processors and 2GB of RAM is running a processor-intensive floating-point geological application that calculates pressures in the earth’s crust.  It takes a long time for each calculation, and the director of computing wants the calculations to take less time.  Memory addressed by the application may also be a bottle neck.  Which of the following will most improve the ability to run the calculations in less time?()A、Replace the two 3.0 GHz DP processors with four 3.0GHz MP processors with a 4MB L3 cache and 4GB of RAMB、Replace the x445 with an x366 with four 3.66 EM64T processors with a 1MB L2 cache and 4GB of RAMC、Replace the two 3.0GHz DP processors with two 3.0GHz MP processors with a 4MB L3 cache and 2GB RAMD、Replace the two 3.0GHz DP processors with four 3.0 GHz DP processors with a 512KB L2 cache and 4GB RAM

Given this method in a class:  public String toString() {  StringBuffer buffer = new StringBuffer();  buffer.append(‟‟);  buffer.append(this.name);  buffer.append(‟‟);  return buffer.toString();  }  Which is true?() A、 This code is NOT thread-safe.B、 The programmer can replace StringBuffer with StringBuilder with no other changes.C、 This code will perform well and converting the code to use StringBuilder will not enhance the performance.D、 This code will perform poorly. For better performance, the code should be rewritten: return ““+ this.name + “”;

Which methods from the String and StringBuffer classes modify the object on which they are called?()  A、The charAt() method of the String class.B、The toUpperCase() method of the String class.C、The replace() method of the String class.D、The reverse() method of the StringBuffer class.E、The length() method of the StringBuffer class.

多选题A technician installed a new application on a Windows XP desktop. After the application wasinstalled, the technician rebooted the desktop and received a bluescreen error. Which of thefollowing steps should the technician perform?() (Select TWO).ABoot into Safe ModeBReplace the motherboardCUninstall the applicationDReplace the hard driveEInstall more RAM

多选题Which two scenarios would benefit the most from TCP Acceleration? ()(Choose two.)Alow-latency networksBhigh-latency networksClong-haul, low-bandwidth linksDlong-haul, high-bandwidth links

多选题public class TestString3 {  public static void main(String[] args) {  // insert code here  System.out.println(s);  }  }  Which two code fragments, inserted independently at line 3, generate the output 4247?()AString s = “123456789”; s = (s-”123”).replace(1,3,”24”) - “89”;BStringBuffer s = new StringBuffer(”123456789”); s.delete(0,3).replace( 1,3, “24”).delete(4,6);CStringBuffer s = new StringBuffer(”123456789”); s.substring(3,6).delete( 1 ,3).insert(1, “24”);DStringBuilder s = new StringBuilder(”123456789”); s.substring(3,6).delete( 1 ,2).insert( 1, “24”);EStringBuilder s = new StringBuilder(”123456789”); s.delete(0,3).delete( 1 ,3).delete(2,5).insert( 1, “24”);

单选题设原字符串s为StringBuffer型,且s="Hellojava",如果想用子串替换把s转换成"HelloWorld",则正确的语句是()As.replace(6,9,World);Bs.replace(6,10,World);Cs=World;Ds=replace(java,World);

多选题Safe Mode is an essential Startup tool for troubleshooting Windows 98. Which two methods cause the system to start up in Safe Mode?()Astart the system in DOS Mode and run the WIN /S commandBpress the  key while restarting system - select Safe ModeCstart the system in DOS Mode and run the safe.EXE fileDhold  key while restarting the system; select Safe Mode

单选题Which methods from the String and StringBuffer classes modify the object on which they are called?()AThe charAt() method of the String class.BThe toUpperCase() method of the String class.CThe replace() method of the String class.DThe reverse() method of the StringBuffer class.EThe length() method of the StringBuffer class.

多选题Which two scenarios are NOT safe to replace a StringBuffer object with a StringBuilder object?()AWhen using versions of Java technology earlier than 5.0.BWhen sharing a StringBuffer among multiple threads.CWhen using the java.io class StringBufferInputStream.DWhen you plan to reuse the StringBuffer to build more than one string.

多选题In which two scenarios do you use SQL* Loader to load data?()ATransform the data while it is being loaded into the database.BUse transparent parallel processing without having to split the external data first.CLoad data into multiple tables during the same load statement.DGenerate unique sequential key values in specified columns.

单选题Given this method in a class:  public String toString() {  StringBuffer buffer = new StringBuffer();  buffer.append(‟‟);  return buffer.toString();  }  Which is true?()A This code is NOT thread-safe.B The programmer can replace StringBuffer with StringBuilder with no other changes.C This code will perform well and converting the code to use StringBuilder will not enhance the performance.D This code will perform poorly. For better performance, the code should be rewritten: return ““+ this.name + “”;

填空题Public class test (    Public static void stringReplace (String text) (    Text = text.replace („j„ , „i„);    )      public static void bufferReplace (StringBuffer text) (    text = text.append (“C”)   )      public static void main (String args ){  String textString = new String (“java”);    StringBuffer text BufferString = new StringBuffer (“java”);      stringReplace (textString);    BufferReplace (textBuffer);      System.out.printIn (textString + textBuffer);    }   )   What is the output?()