what is catching exception in java
Questions 1 and 2 refer to the incomplete definition of the SelectionSorter class below. public class SelectionSorteri public SelectionSorter(int [ anArray) a-anArray; public void sort( for (int i-0; ika.length-1; i++)M int minPos-minimumPosition(i): swap(minPos, //Returns the position of the smallest element //in alfrom)...a a.length-1] private int minimumPosition(int from. //Exchanges alil with ali] swap(int i, int jh... private int() a; The following segment of code is executed. new SelectionSorter(a); SelectionSorter sorter sorter.sort(); Consider arrays initialized with the values below 1. 12, 3, 4, 5, 6) II 16,5, 4, 3,2) 1. Which of the following statements regarding the number of comparison made to sort the array is true? Explain a. I takes fewer comparisons than both Il and III b. Il takes fewer comparisons than both I and Ill. c. IlI takes fewer comparisons than both I and II. d. Iand II require the same number of comparisons, which is different from the number of comparisons required to sort III. I, II, and Ill require the same number of comparisons. e. Questions 1 and 2 refer to the incomplete definition of the SelectionSorter class below. public class SelectionSorteri public SelectionSorter(int [ anArray) a-anArray; public void sort( for (int i-0; ika.length-1; i++)M int minPos-minimumPosition(i): swap(minPos, //Returns the position of the smallest element //in alfrom)...a a.length-1] private int minimumPosition(int from. //Exchanges alil with ali] swap(int i, int jh... private int() a; The following segment of code is executed. new SelectionSorter(a); SelectionSorter sorter sorter.sort(); Consider arrays initialized with the values below 1. 12, 3, 4, 5, 6) II 16,5, 4, 3,2) 1. Which of the following statements regarding the number of comparison made to sort the array is true? Explain a. I takes fewer comparisons than both Il and III b. Il takes fewer comparisons than both I and Ill. c. IlI takes fewer comparisons than both I and II. d. Iand II require the same number of comparisons, which is different from the number of comparisons required to sort III. I, II, and Ill require the same number of comparisons. e