Answer:
A : can change value in the array Ar
Explanation:
void m(int[] ar) is the declaration of an array
In this given line we declare an array
int [] ar; // declaration of array
Basically array declaration has two component : array's type and array's name. Where [] is array type and where in is data type of elements within array.All the element in the array is always considered as integer data type.This line in the code assume that it hold integer data.
for example
int [5] ar ;
it mean that
{ 1,2,3,4,5} it has 5 elements but different value
so option has been meet the requirement of the given program line .
Answer:
The correct option is D = regionNumber
Explanation:
In this scenario we want to know customers who owe more than $1000 each, in each of 12 sales regions. And the customer data variables include name, zip-code, balanceDue and regionNumber; based on the customer data variables names and zip-code will not really affect our output. It is based on balanceDue that we increment the number of customer owing in a particular region (regionNumber).
Therefore, we would add 1 to an array element whose subscript would be represented by regionNumber since we are interested to know the number of customer owing in each of the 12 sales regions.
Answer: ....
all instance variables can be uniformly accessed by sub classes and super classes objects of a subclass can be treated like objects of their super class
Explanation:
Inheritance in Java is a mechanism in which one object acquires all the properties and behaviors of a parent object. The idea behind inheritance in Java is that you can create new classes that are built upon existing classes. When you inherit from an existing class, you can reuse methods and fields of the parent class.
One of the key benefits of inheritance is to minimize the amount of duplicate.
One of the key benefits of inheritance is to minimize the amount of duplicate code in an application by sharing common code among several sub classes.
Inheritance can also make application code more flexible to change because classes that inherit from a common super class can be used interchangeably.