Using _________ instead of concatenation in loops for string manipulation enhances performance in servlets.
- CharArray
- String
- StringBuffer
- StringBuilder
Using StringBuilder instead of concatenation in loops for string manipulation enhances performance in servlets because StringBuilder is more efficient in handling string concatenation operations.
Loading...
Related Quiz
- What is the basic difference between horizontal scaling and vertical scaling?
- Describe how you would configure a filter to initialize with predefined parameters.
- A filter can alter the header information of a request or response by modifying the __________.
- Which of the following is true about ServletConfig?
- In a transaction, if a part of the transaction fails, the ________ operation ensures the database reverts back to its previous state.