explain System.out.println
Answer Posted / rajeshbg
Syatem.out.println() --> 1. System is a class, which is final.
2. out is the static variable in
System class of type PrintStream.
3. println() is the mathod in
PrintStream class.
See below code,
Public class PrintStream
{
Public void println();
}
final Public class System
{
Public static PrintStream out;
}
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is java algorithm?
What are 3 boolean operators?
What is file in java?
What is the SimpleTimeZone class?
How do you end a program?
Can we create more than one object singleton class?
What are the differences between throw and throws?
I want my class to be developed in such a way that no other class (even derived class) can create its objects. How can I do so?
Can you sort a string in java?
What are the differences between the constructors and methods?
How do you use compareto in java?
Why do we use predicate in java?
Is it possible to compare various strings with the help of == operator? What are the risks involved?
What happens if a constructor is declared private?
Can we use String with switch case?