Ask Question
23 February, 11:40

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?

+3
Answers (1)
  1. 23 February, 11: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?
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 the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers