Given the following character array

char[] h = {‘H’, ‘E’, ‘L’, ‘L’, ‘O’};
Write a Java statement that will create a new String object from the character array.


String s = new String(h);

Computer Science & Information Technology

You might also like to view...

Nonrepudiation is the use of encryption methods to ensure the confidentiality of data.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

Describe the disadvantage of having a multiuser system.

What will be an ideal response?

Computer Science & Information Technology

When you delete messages from the Inbox, they are stored in the ________ folder until you permanently delete them

Fill in the blank(s) with correct word

Computer Science & Information Technology

FIGURE 10-1In the code shown in Figure 10-1 above, the phrase "Hello World Wide Web!" appears ____.

A. as the title above the table B. as the footnote below the table C. in the upper table cell D. in the lower table cell

Computer Science & Information Technology