Answers are added

Always keep in mind that while developing a software we never print anything to the console as there will be no console for the end user. We use logging or unit tests for the same.