1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Naya [18.7K]
3 years ago
13

What is stored by a reference variable?What would be the results after the following code was executed? int[] array1 = {10, 20,

30, 40}; int [] array2 = {20, 30, 50, 60}; array1 = array2; array2 = array1;
Computers and Technology
1 answer:
Romashka [77]3 years ago
8 0

Answer:

Both array1 and array2 would be pointing to the array with {20,30,50,60}.

Explanation:

array1 and array2 are references (pointers) to the array.

array1 = array2; only makes the array1 variable point to the same destination as the array2 variable.

The next assignment array2 = array1; therefore doesn't change anything. array2 was already pointing to this location.

You might be interested in
Image editors edit images consisting of thousands of pixels that form this type of image.
lapo4ka [179]
Hi! Did you forget to add something to this?
6 0
3 years ago
Read 2 more answers
Consider the following declaration.int[] alpha = new int[3];Which of the following input statements correctly input values into
stepladder [879]

Answer:

Option (2) i.e., Only (ii) is the correct option to the following question.

Explanation:

Here, in the following code that is written in the Java Programming Language in which they set integer data type array variable "alpha" and set its index to 3 through "new" keyword then, we get input from the user in the index 0 then, we get input from the user in the index 1 then, again we repeat this step for index 2. So, that's why the following option is correct.

Option 1 is wrong because in this option the user input only in the index 0 and this is also the wrong way to insert value in the array variable.

5 0
3 years ago
Say you're designing your own operating system, and you want to implement your own paging system. Give one advantage of having s
zheka24 [161]

Answer and Explanation:

Advantages of having large page sizes: Smaller page table, less page faults, less overhead in reading/writing of pages.

Advantages of having small page sizes: reduces internal fragmentation, better with locality of reference.

7 0
3 years ago
Read 2 more answers
In which slot is a video card most commonly installed within a laptop?
GalinKa [24]

Answer:

mini pcle slot hopes this helps i work on laptops so this should be correct

Explanation:

4 0
3 years ago
The strongest normal form that R=AB is in is? a. not known since we don't know the set of functional dependencies b. 2nf c. 3nf
Firlakuza [10]

A correct option is option (a). The strongest normal form that R=AB is in is not known since we don't know the set of functional dependencies

What are functional dependencies?

An association between two attributes, often the PK and other non-key properties in a database, is known as a functional dependency (FD). If the value of attribute X (often the PK) impacts the value of attribute Y in a unique way for each valid instance of X, then attribute Y is functionally dependent on attribute X for any relation R.

How do you identify functional dependency?

  • When two different values of B are related to the same A, this is known as a "functional dependency" A->B.
  • A key must be distinct, therefore even if two tuples contain the same value for one or more attributes, the key values must differ.

Learn more about dependency: brainly.com/question/22276156

#SPJ4

5 0
1 year ago
Other questions:
  • a computer that no longer works after having minor repair work done to it may have been damaged by ______.
    6·1 answer
  • In a social networking site your personal information is listed under your inbox. home. status. profile.
    11·1 answer
  • Senior executives at a global manufacturing company are determining the key performance indicators they'll use to judge how effe
    15·1 answer
  • Assume we perform a known-plaintext attack against DES with one pair of plaintext and ciphertext. How many keys do we have to te
    14·1 answer
  • A chef writing up her famed recipe for beef stew realizes she has switched parsley and oregano everywhere in the recipe. The che
    13·1 answer
  • Which of the following sets of acronyms is concerned with encoding data for secure transmission?
    11·1 answer
  • Select the correct answer.
    9·1 answer
  • The NVCC college professor receives frequent emails disguised as official business emails. They may be requests to reset a passw
    10·2 answers
  • The difference between a dot matrix printer and a line printer
    9·2 answers
  • Make this be a 7th grade argument over a boy
    5·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!