do we Always need to use try catch blocks while finding index of elements, when we are not sure weather the element present or not or is there any function exists that returns -1.
do we Always need to use try catch blocks while finding index of elements, when we are not sure weather the element present or not or is there any function exists that returns -1.