Javascript for loop vs jQuery for each Web developers often come across looping through data at client side. People generally
Continue reading »Detecting key press for input text and Detecting Enter key-jQuery
Detecting key press for input text and Detecting Enter key The order of events related to the keyup event: 1.
Continue reading »Potential security hole- Final field containing a reference to a mutable object
Potential security hole- Final field containing a reference to a mutable object As a thumb rule, instance fields should never
Continue reading »Some useful JSP Expression Language hacks in JSP
Some useful JSP Expression Language hacks in JSP If you have JSTL in your classpath(by including JSTL.jar and standard.jar in
Continue reading »Some useful Regular Expression examples
Some useful Regular Expression examples Regular expression is a special sequence of characters that helps you match/find strings or sets
Continue reading »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 »Prevent Safari/any browser loading from cache when back button is clicked
Prevent Safari/any browser loading from cache when back button is clicked This problem is caused by back-forward cache. It saves
Continue reading »