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

comments user
Hairstyles

Hello! I’m at work surfing around your blog from my new iphone 3gs! Just wanted to say I love reading your blog and look forward to all your posts! Carry on the excellent work!

comments user
Lyle

When someone writes an article he/she maintains the idea of a user in his/her brain that how
a user can understand it. Therefore that’s why this
article is great. Thanks!

Post Comment