Kizspy Question: 30
(Choose 1 answer)
What is the output of the following Java program?
interface InfA {
static String message = "hello";
String getName();
public class Main implements InfA {
public String getName() {
return InfA.message;
public static void main(String[] args) {
Main t = new Main();
System.out.println(t.getName());
A. hello
B. Compile error because the variable message
declared with a static keyword
C. Runtime error because the interface InfA has no static method
D. None of the others