Virtual Extension Methods in upcoming Java 8 release

前端 未结 5 725
既然无缘
既然无缘 2020-12-31 10:23

When I see code snippets like

  interface A {
      void a();
      void b() default { System.out.println(\"b\"); };
      void c() final { System.out.printl         


        
5条回答
  •  Happy的楠姐
    2020-12-31 10:34

    I suggest you to look at this conference : http://medianetwork.oracle.com/media/show/16999

    This explain everything. The most interesting thing to do is to allow an interface to evolve without rewritting your whole codebase. This is key to allow a big codebase to evolve and not become more and more crippled.

提交回复
热议问题