List<Integer> list0 = new List1<Integer>();
a) Is the word “List” a keyword in java??
b) When creating an object, shouldn’t the name of the class be the same on both side? For example:
Point x = new Point(1,2)
c) What does the following code mean?
List<Integer> list0 = new List1<Integer>();
List1must be declared somewhere asListis an interface, so objects of any class that implementsListcan be assigned to a variable of typeList.