Question: what is the difference between the print and println methods?
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.