正解:C
In output we can see that only odd numbers present, so we need to remove only even numbers to get expected output.
From Java SE 8, there is new method call removelf which takes predicate object and remove elements which satisfies predicate condition. Predicate has functional method call take object and check if the given condition met or not, if met it returns true, otherwise false. Option C we have passed correct lambda expression to check whether the number is odd or even that matches to the functional method of predicate interface.
Option A is incorrect as it is invalid lambda expression. Option B is incorrect as it removes all odd numbers.
Option D is incorrect as there is no remove method that takes predicate as argument.
https://docs.oracle.eom/javase/8/docs/api/java/util/ArrayList.html