hiexam
oracle · 1z0-819 · Q604 · multiple_response · topic_1

Given TripleThis.java: //IMG// Compiling TripleThis.java gives this compiler warning: Note: TripleThis.java uses un…

Given TripleThis.java: //IMG// Compiling TripleThis.java gives this compiler warning: Note: TripleThis.java uses unchecked or unsafe operations. Which two replacements remove this compiler warning and prints 12? (Choose two.)
  • A.Replace line 12 with public static void printValue(Function f, int num) {
  • B.Replace line 12 with public static void printValue(Function f, T num) {
  • C.Replace line 9 with Function tripler = x —> { return (Integer) x * 3; }
  • D.Replace line 12 with public static void printValue(Function f, Integer num) {
  • E.Replace line 9 with Function tripler = x -> { return x * 3; }
  • F.Replace line 9 with Function tripler = x -> [ return x * 3; ]
Explanation
Tested, A and D

Reference: examtopics_top_comment

Practice with progress tracking

Sign in to track wrong answers, get spaced-repetition reminders, and run timed exam mode.