What is the output of the following code?
@interface Name { String first(); String last(); } @Name(first=new String("A"), last="B") public class Main { }
//Compile time error @Name(first=new String("A"), last="B")
The expression new String("John") is not a compile-time constant expression: