
interface Test1 { String toString(); } public class Test { public static void main(String[] args) { System.out.println(new Test1() { public String toString() { return "test"; }
}); }}

HI there
What help is needed in this question, i couldn't understand. Please do elaborate.
Regards

Please explain the flow of this program.
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.