I have learnt that we don't instantiate interfaces but this code is working fine.
Can anyone tell me why is it working?
public class Main {
    public static void main(String args[]) {
       System.out.println("Hello World!");
    }
    public interface lfrag{                        
       public void listen(String s);
    }
    lfrag lis;
}
 
     
     
     
    