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 is cookie in java?
what is reflection api? How are they implemented?
Is jprofiler open source?
What is the difference between jar and executable jar?
What is a context in java?
What is the difference between map and flatmap in java?
Which is better openjdk or oracle jdk?
How do I find jre version?
How do I install jdk?
What is the resourcebundle class?
What about 'hostile applets'? : java security
What is the difference between Logical Parallelism and Physical Parallelism?
What is Map,List,hashtable,ArrayList and difference between them??
Do I really have to type in the programs in the book to try them out?
What is the content reside in Use case Document?