Computer Science, asked by snehithanandam, 1 year ago

what is the use of system.out.println in java

Answers

Answered by eshvi7
3
it displays the output message.
In the statement system is the class in java.lang package and println is a function.
println shifts the cursor to a new line.

kavys: System.out.println prints the argument passed.. System is a final class,Out is a static member and println is a method of PrintStreamClass.
Answered by tinkertweet
3
System.out.println is a public method to print the data values...that is...the statement or the value of the variable which you add in quotation marks between the parenthesis

snehithanandam: can u explain it more
tinkertweet: For example,you write
snehithanandam: sorry come again
snehithanandam: it mean why do we use that
tinkertweet: System.out.println("I am new to java")...this prints the statement I am new to java which is present betwen the quotation marks.
tinkertweet: Did u get it?
Similar questions