Answer the following questions.
Question: 1 Design a class that has a static method named writeArray. THe method should take two arguments: the name of a file and a reference to an int array. The file should be opened as a binary file, the contents of the array should be written to the file, and then the file should be closed.
Question: 2 Write a second method in the class named readArray. THe method should take two arguments:the name of a file and a reference to an int array.
THe file should be opened, data should be read from the file and stored in the array, and then the file should be closed.
Question 3: Write a method that uses recursion to raise a number to a power.
Question 4: Write a recursive function that accepts two arguments into the parameters x and y. the function should return the value of x times y.
Solve these questions in details and provide examples to support your rationale.