Answer Posted / adikeanand@gmail.com
We know that println() method is available in PrintStream class of java.io package.To call any method of a class in java we required object of that class if the method is not static.we know println() is not static,so we required object of PrintStream class object.'System' is class in java and 'out' is static field in 'System' class.In java all static methods and static fields are accessed with class name,so 'out' is static field we access lke System.out that returns the object of PrintStream class with that PrintStream class object we can call methods of PrintStream class.Hence,we call like System.out.println(" "); when we execute this instruction we get one blank space after executing contol goes to next line.
| Is This Answer Correct ? | 12 Yes | 2 No |
Post New Answer View All Answers
What are the rules regarding quotation marks?
What does persist mean in java?
Does ms edge support java?
What is the java virtual machine (jvm)?
How can the static main method use instance variables?
Can java program run without jdk?
What happens when the parent process of a child process exits before the child ?
program A and B are analysed and found to have worst case running time greater than 150NlogN and N*N respectively. which program has the better guarantee after the running time for the large values of N(N>10000)? which program has the better guarantee for the running time of small program N (N<100)? which program will run faster on average for N=1000?
Name primitive java types.
Is java installed on windows 10?
What is ioexception in java?
Why doesn’t the main method throw an error with no arguments?
Is lambda cheaper than ec2?
can a program use more than one command-line argument?
How can you work with permissions from your .net application? : java security