Answers for "Output of following Java program?"

0

What will be the output of the following Java program?

What will be the output of the following Java program?

    import java.util.*;
    class Array 
    {
        public static void main(String args[]) 
        {
            int array[] = new int [5];
            for (int i = 5; i > 0; i--)
                array[5-i] = i;
            Arrays.fill(array, 1, 4, 8);
            for (int i = 0; i < 5 ; i++)
                System.out.print(array[i]);
        }
    }
a) 12885
b) 12845
c) 58881
d) 54881
Posted by: Guest on May-21-2021

Code answers related to "Output of following Java program?"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language