What are the most interesting Java hacks that most developers don’t know about?
- IntelliJ is a far superior IDE then Eclipse
- JUNIT makes your code fool proof
- Coding to interfaces decouples your code from various implementations
- For a big project extending for long it is suggested to deploy Intgration tests to ring fence your finalised functionalities
- For loop gives better performance then stream() in most of the cases
- parallelstreams() is not always faster then stream()
- All threads created by parallelstream() run on a common thread pool in the JVM
- Vertex is a srverless alternative of Node.js in JVM
- Java is not platform independent, Java applications are, as they convert to bytecode according to the machine they are running on.



2 comments