Answer:
The C language code is a class called Test that accepts an array, duplicates it, reinitializes the first array to the first two items of the previous array, and loops through the array to print both items.
Explanation:
public class Test{
public static void main(String args[]){
int[] x={1,2,3,4}; //here declare array x with 1 2 3 4
int[] y=x; //here copy the x array into y array
x=new int[2]; //here reintilized the array size which is 2
for(int i=0;i<.length;i++){ //here now array length is 2 it iterates 2 times
System.out.print(x[i]+" ");
}
}
Answer:
D)One big superclass can be used instead of many little classes.
Explanation:
Inheritance could be described as getting new class on another existing class with almost same execution,
inheritance allows codes to be re-used. It should be noted that inheritance bring about the code sharing among class.
The advantages of using inheritance includes but not limited to
✓ Code that is shared between classes needs to be written only once.
✓Similar classes can be made to behave consistently.
✓ Enhancements to a base class will automatically be applied to derived classes.
Answer:
setTimeout is a native JavaScript function (although it can be used with a library such as jQuery, as we'll see later on), which calls a function or executes a code snippet after a specified delay (in milliseconds).
Explanation:
Talk About The Benefits. of your service over other compines