when System.out.println("") is executed what happens in the
back ground?
Answers were Sorted based on User's Feedback
Answer / qim2010
'System' is a class in 'java.lang' package, which is a final
class(can not be inherited) and its constructor is
private(can not be inherited)
'out' is a static member variable of 'System' class which is
of type 'PrintStream'
'println()' is a method of 'PrintStream' class So
'System.out.println()' means calling of method 'println()'of
the static 'PrintStream' type variable 'out' of 'System' class.
And is used to print a String to the system console.
| Is This Answer Correct ? | 2 Yes | 1 No |
What is a dynamic array in java?
What is static binding and where it occurs?
What are the default and parameterized constructors?
Why should we use singleton pattern instead of static class?
jdbc drivers?
What is substring in java?
what is the output??????? public class multireturn { public(int assign x ( int x) { if(4==x) { return 7; } else if (7=x+3) { return 6; } return 5; } }
Why is the main method static in Java?
What is a line separator in java?
Can inner class final?
How can we achieve IPC in JAVA?
What is passing by reference in java?