Given below the sample code :
import java.util.*;
public class MyClass{
public static Object Mymethod(List lst) {
return lst.get(0);
}
}
Which code line will run after adding it to the above code ?
1. Object a = MyClass.Mymethod(new LinkedList());(1),(4)&(5)
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.