Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

1. Describe Method overloading. What OOP concepts are directly related to method

ID: 3730135 • Letter: 1

Question

1. Describe Method overloading. What OOP concepts are directly related to method overloading?

2. Describe the Concept of Trade-Offs in computer programming. Describe a trade-offs associated with Arrays vs Arraylist. Please answer in your own words.

3. Describe Code Optimization in Java in your own words. What steps did you take to optimize your code in assignment 8 relative to assignment 4-6? Why did you take those steps?

4. Why is it difficult to sort Strings in Java that contain upper and lowercase letters? What is a solution for dealing with the issue in Java?

Explanation / Answer

Hi, I have answered first 2 Questions.

Please repost others in separate post.

1. Describe Method overloading. What OOP concepts are directly related to method overloading?

Ans: Overloading allows different methods to have same name, but different signatures where signature can differ by number of input parameters or type of input parameters or both. Overloading is related to compile time (or static) polymorphism.

2. Describe the Concept of Trade-Offs in computer programming. Describe a trade-offs associated with Arrays vs Arraylist. Please answer in your own words.

Ans: general meaning: Performance vs. development time/cost

- time versus space

- complexity versus ease-of-understanding

- complexity versus time (or space)

- speed of reads versus speed of writes

Describe a trade-offs associated with Arrays vs Arraylist.

Array is static in size and Aray list is growable

Some write operation can take more time in array list than array