Sytem.out.println(" "); this code what mean

Answers were Sorted based on User's Feedback



Sytem.out.println(" "); this code what mean..

Answer / sooraj

It does nothing but print a 'space' and new line to console.

Is This Answer Correct ?    15 Yes 2 No

Sytem.out.println(" "); this code what mean..

Answer / 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

More Java Related AllOther Interview Questions

what are the different phases in delivering the project during development and maintenance?

0 Answers   CTS,


What is native api in java?

0 Answers  


How do I install eclipse?

0 Answers  


Differences between intermediate operations and terminal operations of java 8’s stream api?

0 Answers  


What is java persistence api used for?

0 Answers  






What is javacpl?

0 Answers  


How to implement Thread

2 Answers  


What is cookie in java?

0 Answers  


How do I run a project in netbeans?

0 Answers  


what is major difference between component and object?

1 Answers   HCL, Patni,


What is type inference? Is type inference available in older versions like java 7 and before 7 or it is available only in java se 8?

0 Answers  


How do you check if java is installed on windows command prompt?

0 Answers  


Categories