What is the difference between string and stringbuilder


Modify the Week Three JavaTM application using JavaTM NetBeansTM IDE to meet these additional and changed business requirements:

  • The application will now compare the total annual compensation of at least two salespersons.
  • It will calculate the additional amount of sales that each salesperson must achieve to match or exceed the higher of the two earners.
  • The application should ask for the name of each salesperson being compared.

The JavaTM application should also meet these technical requirements:

  • The application should have at least one class, in addition to the application's controlling class.
  • The source code must demonstrate the use of Array or ArrayList.
  • There should be proper documentation in the source code.

1.Write a 200- to 300-word short-answer response to the following:

  • What is the difference between arrays and ArrayList? What are the advantages and disadvantages of an ArrayList, and when should you use an ArrayList over a simple array?

2.Write a 200- to 300-word short-answer response to the following:

  • What is the difference between string and StringBuilder? What are the advantages and disadvantages of a StringBuilder, and when should you use a StringBuilder over a simple String?

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: What is the difference between string and stringbuilder
Reference No:- TGS0530449

Expected delivery within 24 Hours