Posts

Showing posts with the label openjdk

Linked List Implementation : In Simple Terms

Image
Java Starter Kit #1 Overview In Java POV, the collection framework gives us a wide range of data structures to choose from. Among them, one of the legacies yet widely used data structure is Linked List . The major Pros of Linked List come into play when the data structures need to store a huge amount of values or when the length is not definite. This is the time when this implementation of collection shines. The insertion and deletion of elements from LL are faster than other data structures.  Unlike array which again is a popular implementation of List interface in Java, LL doesn't store data in a continuous manner. Some other pros include: - Zero Memory Wastage: when an element is inserted or deleted, the allocation of memory is dynamic. When removed the previously-stored node reference is removed as hence GC clears it. And when inserted it allocates a new node when it is inserted and doesn't pre-occupy any space in the heap at the initialization of LL. Linked Lis

OPEN JDK or ORACLE JDK

Early this week Oracle announced the next version of Java Java  16 .(March 2021) While people (mainly developers) have not been a huge fan of java's version number recently and obviously the reason for the same is the rise of OpenJDK. Now the million dollar question! Should I use OpenJDK or Oracle JDK?? As everything else in this earth, this too has 2 sides while choosing which JDK will benefit you. And there is no correct or best answer for this choice !! Oracle has been releasing a newer version of JDK every 6 months ( previously it was every 2 years till JDK 10 ) and LTS (Long Term Support) version is not as frequently as this release cycle (3 years release cycle). As defined by Oracle the last "free" version is still JDK 8 , that too will no more be updated ( officially stopped by December 2020). While there is no doubt why OPENJDK is rising! It's FREE & OPEN . OpenJDK too have a release of 6 months.  One major reason for this rise is after the announcement of