What are new Features added in Java 8?

By | August 11, 2019

In this blog post we will talk about What are new Features added in Java 8? One thing I would like to make you clear here is that this post only listed out the new features added in Java 8 but not the detail explanation.

  • Java 8 allows us to add default methods or new functionality to the interfaces of libraries and ensure binary compatibility with code written for older versions of those interfaces.
  • Functional Interfaces and Lambda Expression( see util.function package)
  • New classes added to util.concurrent.atomic to support scalable updatable variables
  • Concurrent Adders & Accumulators – DoubleAdder, DoubleAccumulator, LongAdder, LongAccumulator
  • Array Parallel Sorting API
  • Complete New Date API
  • Java 8 added Stream API which can be used in Collections for bulk operations, such as sequential and parallel map-reduce functions
  • Enhancements in ConcurrentHashMap – added some methods for atomic & bulk operations
  • Optimistic Locking in Code using StampedLock provides very lightweight synchronization
  • PermGen Space removed, Metaspace added

 

You may also like:

Why Java is not 100% Object-oriented language?
What are the differences between 32-bit and 64-bit versions of Java?
Can we call static method with null object?
Can we override static method in Java?
What will be the output of following java program?
What is the difference Between java.util.Date and java.sql.Date in Java ?
Why Prime Numbers are considered in writing certain algorithms like hashcode()?

That’s all about  What are new Features added in Java 8?
If you have any feedback or suggestion please feel free to drop in blow comment box.

Leave a Reply

Your email address will not be published. Required fields are marked *