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


Please Help Members By Posting Answers For Below Questions

Define inheritance with reference to java.

583


What is loop in java?

535


How is tree Mirroring implemented?

633


How to split arraylist elements in java?

604


What 4 doubled?

544






What is the use of string and stringbuffer?

554


Can you call a method in a method?

533


What are internal and external variables?

546


How big is a 64 bit float?

540


Mention a package that is used for linked list class in java.

529


What is a for loop in java?

599


Variable of the boolean type is automatically initialized as?

596


How many bits is a word?

569


Can we create an object if a class doesn't have any constructor ( not even the default provided by constructor ) ?

555


How do you add an element to a hashset in java?

492