what will be the output of the following java program 3f

Solutions on MaxInterview for what will be the output of the following java program 3f by the best coders in the world

showing results for - "what will be the output of the following java program 3f"
Kyla
11 Jul 2016
1What will be the output of the following Java program?
2
3    import java.util.*;
4    class Array 
5    {
6        public static void main(String args[]) 
7        {
8            int array[] = new int [5];
9            for (int i = 5; i > 0; i--)
10                array[5-i] = i;
11            Arrays.fill(array, 1, 4, 8);
12            for (int i = 0; i < 5 ; i++)
13                System.out.print(array[i]);
14        }
15    }
16a) 12885
17b) 12845
18c) 58881
19d) 54881
20