Question: please explain step by step 2. a. Convert the following program to use generics Object y) { class Food void swap(Object Object temp = x;
please explain step by step

2. a. Convert the following program to use generics Object y) { class Food void swap(Object Object temp = x; Xy: y-temp: b. Genrally, is it better to use generics (parametized types) or pass objects? Why
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
