Monday, February 21, 2022

Code that speaks up

 Writing code which talks is something the developer would love to have it. In this blog, we will talk about some of the mechanism which makes the code vocal.

Optional classes:

A very handy feature supported since Java8. However we have to use it to the extent it make things better.

  • To avoid nasty NPE at run time, Optional classes is a convenient way of forcing the user
  • Overusing Optional may become  problematic 
  • Constructor and method parameters
  • POJOs, will be an issue in reflection
  • Optional class dependency in the stateless bean


No comments:

Post a Comment