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 scrollable resultset in java?
there are 67 seats in train . there are only 5 seats in a row and in last row there are only 2 seats. One person can reseve only 5 seat at a time. If person reserving seat , the care is atken that he may get all in row. if seats are not available in row then the arrangement is so that person group get nearby seats. the following class is given public class seat { char name; int seat; boolean isSeatempty } 1.Draw require class digram and object diagram. 2.Write function seatallot(int noofperson) to allocate seat with seat nuber printed for the each name.
explain how java se 8 data and time api solves issues of old java date api?
Do I need both jdk and jre?
Java prints out a ton of digits when I system.out.println() a double. How can I format it so it displays only 3 digits after the decimal place?
Why we use beans in java?
If you’re overriding the method equals() of an object, which other method you might also consider?
What is Map,List,hashtable,ArrayList and difference between them??
What is transaction management in java?
How to reverse the singly linked list(In Node data members are(int data,int pointerTONext))
How do I open the java console in windows 10?
What is default constructor in java?
What is spliterator in java se 8?
What is maven in java?
What is the use of flatmap in java 8?