Are Java 8 lambdas compiled as inner classes, methods or something else? [duplicate]
问题 This question already has answers here : How will Java lambda functions be compiled? (3 answers) Closed 5 years ago . I have read this article today regarding lambdas: http://www.infoq.com/articles/Java-8-Lambdas-A-Peek-Under-the-Hood The article suggests, that lambdas are not implemented as anon inner classes (due to performance). It gives an example that a lambda expression can be compiled as a (static) method of class. I have tried a very simple snippet: private void run() { System.out