Can I use Java 8 syntax in Java EE 7 projects?

Sorry for this stupid newbie question, but I could not get a clear answer:

Is it possible to use lambdas, pointers to methods, threads, etc. in a Java EE 7 project? Does this have any negative consequences or is it very difficult / error prone to customize an existing project?

I come from C # background, so it is very difficult for me to return to Java 7 syntax with anonymous classes for runnables / callables and without LINQ replacement, such as streaming, etc., so this will be a huge help.

Thanks a lot, Spyro

+4
source share
1 answer

Java EE, Java EE 7 Java SE 7. , Java SE 8 Java EE 7. .

Java EE 7, GlassFish, WildFly Apache TomEE, Java SE 8. , Java SE 8 Java EE 7.

+6

Source: https://habr.com/ru/post/1657393/


All Articles