Potential security hole- Final field containing a reference to a mutable object As a thumb rule, instance fields should never
Continue reading »Category: Java
Consider implementing compareTo and equals method
Consider implementating compareTo and equals method Unlike the other methods the compareTo method is not declared in Object. Rather, it
Continue reading »What is Quick sort and usage of Quick sort in JAVA Arrays.sort method
What is Quick sort and usage of Quick sort in JAVA Arrays.sort method As per JDK-8 Arrays.sort method uses Quick
Continue reading »What is Merge sort and usage of Merge sort in JAVA Collections.sort method
What is Merge sort and usage of Merge sort in JAVA Collections.sort method Manipulating data in a faster and efficient
Continue reading »Which is better option: Java clone or Copy constructors or Copy static factory?
Which is better option: Java clone or Copy constructors or Copy static factory? The Cloneable interface was intended for objects
Continue reading »