Question: what are the major differences between searching and sorting in java?
Answer: Searching : Checking if an item (number,character,string etc) you want is present in a given list. Sorting: Arranging the items in a list in ascending or descending order. now if we search the above list for the number 6, we find it in the second position.