fork download
  1. import java.util.*;
  2. import java.lang.*;
  3. import java.io.*;
  4.  
  5. interface SomeInterface
  6. {
  7. static SomeInterface method(String data)
  8. {
  9. return new SomeInterface(){};
  10. }
  11. }
  12.  
  13. class Ideone
  14. {
  15. public static void main (String[] args) throws java.lang.Exception
  16. {
  17. SomeInterface xyz1 = SomeInterface.method("data");
  18. SomeInterface xyz2 = SomeInterface.method("data");
  19. }
  20. }
Success #stdin #stdout 0.04s 2184192KB
stdin
Standard input is empty
stdout
Standard output is empty