r suraaj wrote:...if we want to find out an element in array we have to search for the using a loop (generally for loop)...
An array itself has limited methods available (those inherited/overriden from Object, per
JLS - 10.7 Array Members). But note that java.util.Arrays also provides some functionality for use with arrays, including sorting and searching (as applicable).