Question OOP-ABS-0076
HardA function takes a List rather than an ArrayList parameter. What does this achieve?
- A.
It requires a copy
- B.
It runs faster
- C.
Sign up free to see the answer and a step-by-step explanation.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Abstraction and Interfaces question
A function takes a List rather than an ArrayList parameter. What does this achieve?
It requires a copy
It runs faster
Sign up free to see the answer and a step-by-step explanation.
Callers can pass any List implementation
It prevents modification