adplus-dvertising
frame-decoration

Question

To pass a string as a command-line argument in Java, you need to surround the text within a pair of ___.

a.

Single Quotes ('abc def')

b.

Double Quotes ("abc def")

c.

Double Spaces( abc def )

d.

Triple Single Quotes ('''abc def''')

Answer: (b).Double Quotes ("abc def")

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. To pass a string as a command-line argument in Java, you need to surround the text within a pair of ___.