a hard copy stores data and information in the form of physical files it may be images text photographs and more a soft copy data and information in the form of virtual file saved on a computer or a drive you can preserve a hard copy for two long because its day subjected to wear and tear
Answer:
public static void init(int[] arr, int n) {
if (n==0)
arr[0] = 0;
else {
arr[n-1] = n - 1;
init(arr, n-1);
}
}
Explanation:
Create a method called init that takes two parameters, an array and the number of elements in the array
When n reaches 0, set the first element to 0 (This is a base for our recursive method)
Otherwise, set the element in index i to i
Call the init inside the init, this is the recursion part, with same array but decrease the number of elements by 1 (We decrease the number of element by 1 in each time so that it goes through all the elements in the array)
Answer:
T
Explanation:
An interface is compiled to a separate bytecode class file.
For example of out application has a class myClass.java and an interface myInterface.java:
class myClass{
String name;
int age;
}
interface myInterface{
public String getName();
public int getAge();
}
Both of these are compiled to their own respective class files by the compiler,namely, myClass.class and myInterface.class.