1.

What were the drawbacks of Date/ Time API in Java 7 that lead to some enhancements to the API in Java 8?

Answer»

The following were the drawbacks:

  • java.util.DATE is not thread safe.
  • No UNIFORMITY, since the default Date starts from 1900, month starts from 1, and day starts from 0.

The above drawbacks were fixed in Java 8 like INTRODUCTION of utility methods for date operations.



Discussion

No Comment Found