Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8236827

Lambda expression allows in Functional interface

XMLWordPrintable

      A DESCRIPTION OF THE PROBLEM :
        Java8Interface Java8Interface=
      ()->{System.out.println("interface default method"); return "sdfsdf";

      };

      abstract String getName() ;


      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Interface allowing implementation as well. Using lambda


      ---------- BEGIN SOURCE ----------
        Java8Interface Java8Interface=
      ()->{System.out.println("interface default method"); return "sdfsdf";

      };

      abstract String getName() ;
      ---------- END SOURCE ----------

      FREQUENCY : always


            tongwan Andrew Wang
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: