Print():-
Print is used to print the statement into the console and the control is available in the same line.
Ex:- System.out.print(“durgaSoftware”);
System.out.print(“core java”);
Output:-durgasoftwarecorejava
Println():-
In the println statement Print is used to print the statement into the console and ln represent go to the new line now the control is available in the next line.
Ex:- System.out.println(“durgasoftware”);
System.out.println(“core java”);
Output: - durgasoftware
Core java
Print is used to print the statement into the console and the control is available in the same line.
Ex:- System.out.print(“durgaSoftware”);
System.out.print(“core java”);
Output:-durgasoftwarecorejava
Println():-
In the println statement Print is used to print the statement into the console and ln represent go to the new line now the control is available in the next line.
Ex:- System.out.println(“durgasoftware”);
System.out.println(“core java”);
Output: - durgasoftware
Core java
No comments:
Post a Comment