Ask Question
8 December, 18:33

In the following two Java output statements, System. out. println ("Hello. Welcome to this program."); System. out. print ("Tell me your favorite number: "); why do you think the first uses println and the second uses print?

+1
Answers (1)
  1. 8 December, 18:46
    0
    The first statement show that after print the statement, the compiler will leave the line and start the next statement on fresh line.

    While the second statement show that after print statement the compiler will continue print next statement without drop to another line.
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “In the following two Java output statements, System. out. println ("Hello. Welcome to this program."); System. out. print ("Tell me your ...” in 📙 Mathematics if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers