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
Sveta_85 [38]
3 years ago
5

An array of stringobjects that will hold 5 names would be declared using which statement?

Computers and Technology
2 answers:
lina2011 [118]3 years ago
4 0

Answer:

E) None of these will work

Explanation:

Option A, string names[5] will not work because the keyword String is not properly capitalized. Generally, arrays are  declared and initialized. This is accomplished in Java Programming language with the new keyword or by assigning initial values to the array in a pair of braces. A valid declaration and initialization for the above question will be any of these two;

 String [ ] names = new String [5];

 String [ ] namesTwo = {"John", "James", "Jonathan","John", "Jabez"};

In the first example a new array object is created with the new keyword with a provision to hold five elements

In the second example the array is created and and assigned five elements.

Anvisha [2.4K]3 years ago
3 0

Answer:

E) None of these will work

Explanation:

Considering the syntax of option (A), it is similar to how to declare an array of string objects in C++. That would have been the correct answer except that the keyword string should have begun with a capital letter. i.e it should be <em>String</em> not <em>string.</em>

Also considering the syntax of option (D), it is similar to how to declare an array of string objects in C++. That would have been the correct answer except that the array name <em>names </em>should be before the number of elements the array will hold. i.e <em>String names [5]</em> rather than <em>String [5] names</em>

Other options are off the point

You might be interested in
Photography is harder with digital cameras than with film cameras.<br>true<br>false
Oliga [24]

the answer is false bc digutal is easeir




7 0
3 years ago
Read 2 more answers
Give brainliest if you tell me the can tell me the most random thing
Scorpion4ik [409]

Mood

Explanation:

Because it gets changed by the time you are happy or sad. Same that while you are reading if you like your. mood gets good but if you dont find this ans satisfied your mood gets changed.

3 0
3 years ago
Given that it takes 0.08 ms to travel from one track to the next of a hard drive; that the arm is originally positioned at Track
daser333 [38]

Answer:

Time taken to travel from one track to the next = 0.08ms

Initial track= 15     0

4      (15-4)*(0.08)= 0.88

40     (40-4)*(0.08)= 2.88

35      (40-35)*(0.08)= 0.4

11       (35-11)*(0.08)= 1.92

14       (14-11)*(0.08)= 0.24

7         (14-7)*(0.08)= 0.56

----------------------------------------------

Total seek time=0.88+2.88+0.4+1.92+0.24+0.56=6.88ms

Explanation:

We caculate the seek time for each request, and then add them together to find the total seek time. The final track number for the current request becomes the current track of next request, and this process is repeated till the last request is processed.

4 0
3 years ago
When asking a question how do u add a photo for others to also see​
Lostsunrise [7]
Click on the bottom button
6 0
3 years ago
Read 2 more answers
Data owners ensure that only the access that is needed to perform day-to-day operations is granted and that duties are separated
Akimi4 [234]

Answer:

True

Explanation:

As employees might be accessing business/client data, security of data access is a topmost priority.

8 0
3 years ago
Other questions:
  • The first digital keyboard was the DX-7, introduced by the Yamaha company in 1983.
    15·1 answer
  • _____ is a valuable tool that enables you to find information on the web by specifying words or phrases know as keywords- which
    14·1 answer
  • is this website just for a bunch of lazy kids bumming off answers? Because if that were the case I'd be one of them.
    9·1 answer
  • How can a wiki contribute to an academic paper?
    9·2 answers
  • What does cpu stand for
    6·2 answers
  • You can count on everything online to be 100% accurate. <br> A. FALSE <br> B. TRUE
    11·2 answers
  • Difference between a software package and Integrated software and why users would choose one over the other
    8·1 answer
  • A student is browsing a website. While browsing, he click on a link that takes him to another website. Which code gives the corr
    14·1 answer
  • GMI = $4,666.67 Total Monthly Deductions $1,131.00 What is the Net Monthly Income (GMI - Total Monthly Deductions) =
    9·1 answer
  • which term describes the layer of software that resides between the virtual operating system and the physical hardware it runs o
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!