Law homework help
Please assist with the below questions for the following code.Question: If an array had not been chosen to hold the data manipulated in this program, how else (i.e., with what other data types) could it have been represented?Which approach, using an array or using the alternative you identified in question #1, is shorter/easier?What is the output of this program?What would be the result of using a println() statement to display the value of arraynum[8]?How many values can arraynum contain, and why?import java.util.*; // import the java utilities classes which we will need to sort our arraypublic class PRG420Week4_AnalyzeAssignment { public static void main(String args[]) { int[ ] arraynum;