Java null Handling Best Practices

null is nor an Object neither a type. It’s just a particular value, which can be assigned to any reference type. null references can only be used in a boolean test, to check if an object is...

Try Catch Best Practices

When an exception occurs we need to do 2 mains things: information logging and reporting This should be combined with exception handling There are few things that we need to keep in mind...

Java Constructor Best Practices

Use of Private Constructor in Java A private constructor is used when you have a class that you don’t want to be instantiated by another class. The most common cases where a private constructor...