Learn Java Easy. Chapter 2 Exercises
💻 Exercises: Display data in console in Java | Topic 2 solved Topic 2 Exercises Exercise 1. Tell me the difference between System.out.println and System.out.print. Solution: If you use System.out.println(“Hello”); it will print “Hello” and then move to the next line. But if you use System.out.print(“Hello”); it will print “Hello” on the same line where … Read more