52.9k views
0 votes
In java language please anwer these questions word for word. Thank you1.What is the output produced from the following statements? (Treat tabs as aligning to every multiple of eight spaces.)System.out.println("\ta\tb\tc");System.out.println("\\\\");System.out.println("'");System.out.println("\"\"\"");System.out.println("C:\\in\the downward spiral");2 What is the output produced from the following statements?System.out.println("Dear \"DoubleSlash\" magazine,");System.out.println();System.out.println("\tYour publication confuses me. Is it");System.out.println("a \\\\ slash or a //// slash?");System.out.println("\\Sincerely,");System.out.println("Susan \"Suzy\" Smith");3.What is the output of the following program? Note that the program contains several comments.

User Rhughes
by
3.1k points

1 Answer

5 votes

Answer:

The outputs are below. I suggest you read more on "Escape sequence" in java

1) a b c

\\

'

"""

C:

in the downward spiral

2)

Dear "DoubleSlash" magazine,

Your publication confuses me. Is it

a \\ slash or a //// slash?

Sincerely,

Susan "Suzy" Smith

3)

some lines of code

have // characters on them

which means

lines can also

have /* and */ characters

of comment.

Step-by-step explanation:

User WebSeed
by
3.8k points