The java interface should not be instantiated, why is it possible in the following form?

the java interface should not be instantiated, so why make the program work properly in the following form?
(the screenshot on the ebook, the program actually clicked, but I don"t know why)
clipboard.png

Sep.16,2021

this is the way to write an anonymous inner class. After the java file is compiled, an inner class implementation interface is generated

final class TestDemo$1
  implements IMessage
{
  public void print()
  {
    
  }
}
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1c296d2-33987.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1c296d2-33987.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?