DEV Community

[Comment from a deleted post]
Collapse
 
khmarbaise profile image
Karl Heinz Marbaise

This table is simply wrong in many aspects.

  • Compilation (as already mentioned by others) both is being compiled into ByteCode which runs on a VM..
  • Threads? In Java you can simply write XYZList.parallelStream().. (Java 8+) Also via ExecutorService since Java 7 (a little bit more inconvenient) ...
  • Extension functions are more or less the same concept as in Go but in Java you can add methods via default methods on interfaces ... yes you have to have an interface first ... but usually you have already.
  • Smart Casts are more or less the same like pattern matching in Java (JDK15+)
  • Functional programming? In Java since JDK8+ (since 2014!) existing and working very good...

  • docs.oracle.com/javase/tutorial/co...

  • docs.oracle.com/javase/7/docs/api/...

  • techgeeknext.com/java/java15-featu...