explain System.out.println
Answers were Sorted based on User's Feedback
Answer / santhosh
System : It is a BuiltIn class
Out : it refers to the output device
println : It is a method of System class , a method which
helps in printing the contents in the paranthesis to the
output(console) device generally monitor.
Is This Answer Correct ? | 13 Yes | 45 No |
Answer / shakti prasad rath
System ->it is a final class present in java.lang package
that can be inherited.
out -> it is a inner class object.
println() -> it is a method in printstream class
Is This Answer Correct ? | 9 Yes | 44 No |
Answer / arun rajesh
System.out.println
The println() is a method that is used to print data on the
system console (command window). Java's method names are
always followed by parentheses.
System and out are not methods, but names that represent
other Java classes.
System.out means that the variable out is defined inside
the class System.
The out.println() tells us that there is an object
represented by a variable called out and it has a method
called println().
Is This Answer Correct ? | 36 Yes | 136 No |
Answer / nisha sharma
System-it is class
out-object/datamember or u can say referencevariable of
class
println-method of class
Is This Answer Correct ? | 24 Yes | 125 No |
Answer / vinay tiwari
System: System is a Package
out: out is a class belonging to System Package
println(): println() is a method of out class
Is This Answer Correct ? | 54 Yes | 453 No |
System: System refers to current java program.
out: out refers to output device. by default it is monitor.
println: to print the specific string onto output device in
next line
Is This Answer Correct ? | 118 Yes | 544 No |
Answer / vinay tiwari
System: System is a Package
out: out is a class belonging to System Package
println(): println() is a method of out class
Is This Answer Correct ? | 80 Yes | 531 No |
What are the legal parameters?
What is size_t?
Can interface be private in java?
Why const and goto are reserved keyword in java?
How to count occurrences of each duplicate element in a list {a,b,d,c,a,b} ? Thanks in Advance
Define locale.
How does access modifiers work?
What is a parameter in matrices?
Why Set interface contains unique elements, what internally implemented for this so that it contains unique elements?
Write a program to find the greatest of three numbers in java?
why java does compile time polymorphism at run time ?
What is passing by reference in java?