How System.out.println() works?

Showing Answers 1 - 19 of 19 Answers

Habazal

  • Aug 1st, 2006
 

it is working via native code.

  Was this answer useful?  Yes

RUHUL ALAM

  • Aug 3rd, 2006
 

it works via native code

  Was this answer useful?  Yes

Aayush

  • Aug 7th, 2006
 

System.out.println();incase System is a class in java.lang package.And out is the static field in the java.lang.System class. It works by a native method.

  Was this answer useful?  Yes

atish123

  • Aug 12th, 2006
 

System.out.println() :In the above syntax , System is predifined class that provides access to the system, and out is the o/p stream that is connected to the console.The method (i.e. println()) displays the string parameter on the console. we use System.out object and calling its println() method.println() is a command line program which means that it runs in a shell or dos window and pronts its output there.

  Was this answer useful?  Yes

Vibs

  • May 17th, 2007
 

System is final class which cannot be instantiated.

out is Reference of PrintStream Class as member of System Class.

and println is method of PrintStream Class.

and so we write System.out.println.

Hope its clear...

System is Class in Java.lang package. And Out is an Object for that Class and Println() is a method defined in that class. So once you type System.out.println() the compiler will go to the System Class and Checks whether any println() method exists or not, if so it will execute the method

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions