I have gone through various articles, but I still do not know why instanceof should not be used. Kindly let me know your thoughts.
instanceof
One good use-case would be checking for marker interfaces like RandomAccess.