What is the System , out in the System.out.println( "MSG");

Showing Answers 1 - 12 of 12 Answers

Anjan

  • Jan 22nd, 2007
 

The statment  means  System.out.println("msg");

in that System is a class  and  out is the object of  PrinterWriter class and Println is the method of PrintWriter,this method calls the Object class toString().  and represent the message. regarding to that code with is in the toString()..

  Was this answer useful?  Yes

shabeer

  • Jan 24th, 2007
 

System is class provided by the Java soft people.Print Stream is a sub class to System class.when ever we create an object to System class there is a field called "in" this field reprasent the Print Stream Class Object.print is an parametarised method in PrintStreamClass provided by Java Softand if we provide string with in doublequotes it prints as it is in command window

  Was this answer useful?  Yes

GAGAIAH

  • Feb 5th, 2007
 

In the System is system is class, included in java.lan.Object .and also it has a out ,in and err is variables are in this system class.println is the method in printWriter then accessing the message. ok see u , u r lakshman

  Was this answer useful?  Yes

Arpit Choudhary

  • Feb 10th, 2007
 

System is a class that is defiend in the java .lang package that defined static object out of type PrintStream class. By using this out object we call the println method of PrintStream class.

Thanks & Regards
Arpit Choudhary

  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