Question: Which statements are true about the following code? Select the four correct answers. (a) (1) will not compile. (b) (2) will not compile. (c) (3)
Which statements are true about the following code?

Select the four correct answers.
(a) (1) will not compile.
(b) (2) will not compile.
(c) (3) will not compile.
(d) (4) will not compile.
(e) (5) will not compile.
(f) (6) will not compile.
(g) (7) will not compile.
(h) (8) will not compile.
(i) (9) will not compile.
(j) (10) will not compile.
{ void absMethodl (String s); } interface Funkyl interface Funky2 { String absMethod2 (String s); } public class RQ12A99 ( public static void main(String[] args) { Funky1 p1; pl = s-> System.out.println (s); pl = ss.length(); pl = S -> s.toUpperCase (); s -> pl = s.toUpperCase (); }; pls > { return s.toUpperCase(); }; Funky2 p2; p2 = s -> System.out.println (s); p2 p2 = p2 = s-> {s.toUpperCase(); }; NNNNE PR s->s.length(); s->s.toUpperCase(); p2 s-> { return s.toUpperCase(); }; } // (1) // (2) // (3) // (4) // (5) // (6) // (7) // (8) // (9) // (10)
Step by Step Solution
3.45 Rating (152 Votes )
There are 3 Steps involved in it
e f g and i Assignments in 5 6 7 and 9 will not compile We must check whether the function type of t... View full answer
Get step-by-step solutions from verified subject matter experts
