Ask Question
7 September, 07:21

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?

+5
Answers (1)
  1. 7 September, 11:13
    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?
Find 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 you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers