Elance Exams Answers PDF file

-- PDF FILE --
Download PDF file of elance Zoho Creator Exam Answers

Given a class containing the following pieces of code: public static <T> List getList() { return new ArrayList<T>(); } // ... List<?> list = new ArrayList<Integer>(); Adding which of the following lines would cause the class to not compile?

List<Integer> list2 = list;
list = new ArrayList<String>();
list = getList();
All of these compile
List<Integer> list2 = getList();
  • Follows us our servcies
  • Facebook icon
  • Linkedin icon
  • twitter icon
  • rss icon
  • social icon