21. }Which two modifications enable the code to compile? (Choose two.)A. At line 1, remove abstractB. At line 9, insert super ( );C. At line 12, remove publicD. At line 17, insert super (x);E. At line 17, insert super (); super.side = x;F. At line 20, use public void area ( ) {Answer: D,F
Question: 9Given:class Sum extends RecursiveAction { //line n1static final int THRESHOLD_SIZE = 3;int stIndex, lstIndex;int [ ] data;public Sum (int [ ]data, int start, int end) {this.data = data;this stIndex = start;this. lstIndex = end;}protected void compute ( ) {int sum = 0;if (lstIndex – stIndex <= THRESHOLD_SIZE) {for (int i = stIndex; i < lstIndex; i++) {sum += data [i];}System.out.println(sum);} else {new Sum (data, stIndex + THRESHOLD_SIZE, lstIndex).fork( );new Sum (data, stIndex,Math.min (lstIndex, stIndex + THRESHOLD_SIZE)).compute ();}}}and the code fragment:ForkJoinPool fjPool = new ForkJoinPool ( );int data [ ] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10}fjPool.invoke (new Sum (data, 0, data.length));Visit us at