Question: what is the difference of print and println in java?
Answer: The prints method simply print text on the console and does not add any new line. While println adds new line after print text on console. print method works only with input parameter passed otherwise in case no argument is passed it throws syntax exception.