|
Training, Open Source computer languages
|
|
|
|
Java Programming quiz, level Intermediate, question 15
| Question: | What would I use a StringBuffer for? |
| Answer 1: | Building up and manipulating a character string that needs to be changed dynamically. This was the CORRECT answer |
| Answer 2: | Writing text efficiently to a network so that it's not sent byte-by-byte. |
| Answer 3: | For reading in a line so I don't have to handle it byte-by-byte. |
| Answer 4: | StringBuffers are deprecated; arrays of characters should be used instead. |
This was a question from our quiz ... but we have now provided you with
the answer (above) - we prefer to provide you with information rather than to
puzzle you.
|
|
©
WELL HOUSE CONSULTANTS LTD., 2012: Well House Manor •
48 Spa Road • Melksham, Wiltshire • United Kingdom • SN12 7NY
PH: 01144 1225 708225 • FAX: 01144 1225 899360 •
EMAIL: info@wellho.net •
WEB: http://www.wellho.net •
SKYPE: wellho |