explain System.out.println
Answer Posted / prashant
System : It is a java class in the java.lang package.
Out : it is a static field in System class.it holds the
reference of an object of the class printStream.
Println() : it is the method in the
PrintStream class.
so because out is static we can call it using class name
and because of it is returning object we can call methods
present in the object.and one of the method is println.
Is This Answer Correct ? | 12 Yes | 11 No |
Post New Answer View All Answers
Define inheritance with reference to java.
What is loop in java?
How is tree Mirroring implemented?
How to split arraylist elements in java?
What 4 doubled?
What is the use of string and stringbuffer?
Can you call a method in a method?
What are internal and external variables?
How big is a 64 bit float?
Mention a package that is used for linked list class in java.
What is a for loop in java?
Variable of the boolean type is automatically initialized as?
How many bits is a word?
Can we create an object if a class doesn't have any constructor ( not even the default provided by constructor ) ?
How do you add an element to a hashset in java?