explain System.out.println
Answer Posted / prashant
System : It is a java class in the java.lang package.
Out : it is a static field in System class.it holds the
reference of an object of the class printStream.
Println() : it is the method in the
PrintStream class.
so because out is static we can call it using class name
and because of it is returning object we can call methods
present in the object.and one of the method is println.
| Is This Answer Correct ? | 12 Yes | 11 No |
Post New Answer View All Answers
What function extracts specified characters from a string?
What are synchronized blocks in java?
What is a conditional statement explain with example?
Why string is not a wrapper class?
What is identifier in java?
What is string value?
How do you represent a space in regex java?
Can we define private and protected modifiers for the members in interfaces?
Is 0 true or is 1 true?
explain autoboxing in java?
What is the final keyword denotes?
How concurrent hashmap works?
What are filterstreams?
Is null a string or object in java?
Is oracle java 11 free?