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 do you mean by exception handling?
What is ehcache in java?
What is mime in java?
For each of the following program segments,give a big zero
analysis for the running time
1.For (i=0;i What is a jpa repository? differences between iterator and spliterator in java se 8? What is java bean class? What's the difference between code-based security and role-based security? Which one is better? : java security What is the java api? What is a cookie in java? what is the package for freshers in valuelabs. What is the difference between java se and java ee? What is an action class in java? What is the first argument of the string array in main method? What is java flatmap?