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
valkas [14]
3 years ago
14

When a field is declared static there will be ________. Group of answer choices two reference copies of the field for each metho

d in the class a copy of the field in each class object a copy of the field for each method in the class only one copy of the field in memory
Computers and Technology
1 answer:
anygoal [31]3 years ago
7 0

Answer: one field copy gets generated in memory

Explanation:

When a field is declared static,it will become common for entire class instances. Single copy of field that gets created for the particular class where numerous instances present in that class can use it by sharing .

  • Other options are incorrect because  two copy of reference does not gets created as it only supports single copy.
  • Copy of the field for every class is not generated by static field.All method and instances use  only one field copy for the whole class.
  • Thus the correct answer is creation of only one field copy in memory for static field.

You might be interested in
Which is the best organizational flow for a project?
abruzzese [7]

Answer:

client folder/project folder/images folder/image files

Explanation:

The basic propose of organizing projects documents and images is to find the documents in an easy manner.

The organizational flow of the document is as flow:

  1. First of all create the folder with the name of client, Whose project is going to be started. As there can be multiple clients, so make separate folder for each.
  2. In second step, Create the Project folder that is going to be started, as there are many projects you are working on for the same client.
  3. Then create the image folder inside the project folder, as there can be many other files types of the project.
  4. Then save the images in the image folder.

So, the option is better for this is

client folder/project folder/images folder/image files

6 0
4 years ago
Write a function called simulate_several_key_strikes. It should take one argument: an integer specifying the number of key strik
Furkat [3]

Answer:

The solution code is written in Python 3

  1. import random
  2. import string
  3. def simulate_several_key_strikes(l):
  4.    char_set = string.ascii_lowercase
  5.    return ''.join(random.choice(char_set) for i in range(l))
  6. print (simulate_several_key_strikes(10))

Explanation:

The program is aimed to generate random characters and the number of characters generated is dependent on user input. Hence, we will need to import the random module (Line 1). We also import string module so that we can make use of its associated method to generate English letters (Line 2)

Next, we create the function simulate_several_key_strikes that takes one single parameter, l, as input. Within the function body, we use ascii_lowercase method to generate the lowercase letter set and assign it to char_set variable (Line 5). We use random.choice method to randomly pick one of the letter in char_set and join it with an empty string (Line 6). Please note there is a for-loop that will repeatedly generate l-number of character and eventually return it as output.

We test the function by passing 10 as input parameter and we shall get a sample output as follows:

xuiczuskoj

7 0
3 years ago
What piece of hardware directs traffic between the connected devices when two LAN's are communicating across the Internet?
luda_lava [24]

Answer:

The correct answer is "Router".

Explanation:

In networking, routers is one of the main hardware which is used to direct the data traffic on a LAN system.

The router also works as an interconnection system for two or more than two networks. Routers mostly work between the internet and computer which directs the data to its right path.

It works between the computer system in a premise to make the networking possible through a LAN by using switches for communication between two or more than two devices in a LAN across the internet.

Hence, the most appropriate answer is the router.

3 0
3 years ago
Adam has to write a paper where the margins need to be set to these measurements: Left: 1.5" Right: 4" Bottom: 1" Top: 1"
Sholpan [36]

In Microsoft Word, he should go to Page Layout and then to Margins.

8 0
4 years ago
Nims is applicable to all stakeholders with incident related responsibilities. True or False
QveST [7]

Answer:

True

Explanation:

National Incident Management System (NIMS) is intended to be used by all individual regardless of there positions. it is aimed with the responsibility of enrolling and issuing Nigerians with national identity cards regardless of the position,degree, or family background.

6 0
3 years ago
Read 2 more answers
Other questions:
  • What are some innovations that a cell phone has undergone since its original invention?
    14·1 answer
  • Effective note-taking helps support<br><br> action.<br> distinction.<br> distraction.<br> retention.
    9·2 answers
  • If a person was on board a hypersonic airplane what do you think they would be able to see as they look out a window looking in
    13·2 answers
  • Decision making process
    15·1 answer
  • Where are some places that cyberbullying occurs? Check all that apply.
    15·1 answer
  • Write a couple of paragraphs about the usefulness of computer​
    5·1 answer
  • What is eight bits of data called?
    13·1 answer
  • NEED HELP! BRAINLIEST FOR WHOEVER ANSWERS CORRECTLY FIRST!!!
    14·1 answer
  • Which key doesn't relate to keyboard A:return key B :enrollment key C: delete key D:tab key
    9·2 answers
  • What message did vera mukhina convey in her work entitled the worker and the collective farmworker?
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!