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
fomenos
3 years ago
11

Consider having three String variables a, b, and c. The statement c = a + b; also can be achieved by saying_____________.a. c =

a.length( ) + b.length( );b. c = (int) a + (int) b;c. c = a.concat(b);d. c = b.concat(a);e. c = a.plus(b);
Computers and Technology
1 answer:
Alik [6]3 years ago
3 0

Answer:

Option(c) i.e "c = a.concat(b); " is the correct answer to the given question.

Explanation:

In Java Programming language the concat function in the string is used to merge the two string .it is similar with the "+" operator in string means if we use "+" between the two string this will also merge the two string .

  • Following are the syntax of concat function

         string1.concat(string2);

  • For example

public class Main // main class

{

public static void main(String[] args)  // main method

{

   

    String a="san";// varible declaration

    String b="ran";// varible declaration

    String c;// varible declaration

    c=a+b;// merge the two string

   System.out.println(c);// display the string c

    c=a.concat(b);//merge the two string

 System.out.println(c);// display the string c

}

}

Output:

sanran

sanran

  • All the others options are not used to merge the string that's why the others option are incorrect.
You might be interested in
How do you activate the Slicer Tools contextual tab?
Strike441 [17]

Answer:

i need this one too

Explanation:

4 0
3 years ago
The linux/unix command __________ can be used to search for files or contents of files.
Nana76 [90]
The `grep` command is used for this. https://man7.org/linux/man-pages/man1/grep.1.html
8 0
2 years ago
Draw a flowchart and write pseudocode to represent the logic of a program that allows the user to enter values for the width and
n200080 [17]

Answer:

10. Start

20. Enter Width of the room (W)

30. Enter length of the room (L)

40. LET Area = L * W

50. Output Area

60. End

Explanation:

The flowchart is attached to this answer as an attachment.

7 0
4 years ago
If i'm watching a show on netflix without any extra speakers besides the normal one on my tv, what setting should i use? English
sweet-ann [11.9K]
5.1 is higher quality
8 0
3 years ago
Read 2 more answers
1) In your own words, explain what a browser is. 2) Why is it important to keep your browser up to date?
marta [7]

Answer:

A browser is a software that is used to access the internet. A browser lets you visit websites and do activities within them like login, view multimedia, link from one site to another, visit one page from another, print, send and receive emails, among many other activities

The most important reason to keep your browser up-to-date is for your own safety and security, and that of your computer. ... If you're a Firefox user, your browser will remind you to update your add-ons whenever new versions become available.

Malicious hackers and Web sites can exploit security flaws in browsers and infect your computer with harmful programs, trojans, and viruses. Regular updates to your browser fix security problems when they are detected, and make your computer safer from those types of attacks.

6 0
4 years ago
Other questions:
  • What type of formatting does the clip below demonstrate
    6·1 answer
  • What are some good invention names for an air filter?
    14·1 answer
  • [15 points] 3.2 Lesson Practice (holy marry mother of joseph)
    7·1 answer
  • Animations and transitions are added from the _____.
    11·2 answers
  • What is HTML. What is HTML ​
    15·2 answers
  • Given the class definition: class CreateDestroy { public: CreateDestroy() { cout << "constructor called, "; } ~CreateDestr
    6·1 answer
  • The frame header at the Data Link layer includes hardware addresses of the source and destination NICs. What is another name for
    11·1 answer
  • The best way to safeguard your document is to save it
    11·1 answer
  • How to call a void method with no parameters IN JAVA?
    8·1 answer
  • Designing a medium to large network requires a combination of technologies and there isn't one "right way." Think about the tech
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!