Sytem.out.println(" "); this code what mean
Answers were Sorted based on User's Feedback
Answer / sooraj
It does nothing but print a 'space' and new line to console.
| Is This Answer Correct ? | 15 Yes | 2 No |
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 |
How do I open java console?
Write a program using call by refernce for two different classes to explain to print whether a given number is automorphic or not.
Can a dead thread be started again?
Is it correct to say that using parentheses can only change?
What are the types of cookies in java?
i have make jar file but when i click in this file then arr swhow "no faund main class" plese help me in this problem becose i want to make a jar file as a dxdcutable file
How do I open the java console in windows 10?
What is an entity in java?
How the java is platform independent?
How do I run a project in eclipse?
What do you mean by exception handling?
How can I check single byte, double byte of character in JTextField?(eg. japan unicode and English unicode)