Analyze the following code:
```
public class Test {
public static void main(String[] args) {
Test test = new Test();
test.setAction(() -> System.out.print("Action 1! "));
}
public void setAction(T t) {
t.m1();
}
}
interface T {
public void m1();
public void m2();
}
```
a. The program displays Action 1.
b. The program has a compile error because T is not a functional interface. T contains multiple methods.
c. The program would work if you delete the method m2 from the interface T.
d. The program has a runtime error because T is not a functional interface. T contains multiple methods.
bc
You might also like to view...
C# requires all variables to have a(n) _________ .
Fill in the blank(s) with the appropriate word(s).
A static method can be called independently of a separate object.
Answer the following statement true (T) or false (F)
The NPER function would be best used to determine the periodic interest rate of an investment
Indicate whether the statement is true or false
In Page Layout, default page breaks are indicated by dashed blue lines
Indicate whether the statement is true or false.