Println():- used to print the statements in console but the control is there in next line.
Example:-
System.out.println(“Sravyainfotech”);
System.out.println(“core java”);
Output: – Sravyainfotech
Core java
Print():- used to print the statement in console and the control is present in the same line.
Example:-
System.out.print(“Sravyainfotech”);
System.out.print(“core java”);
Output:-SravyaInfotechcorejava