what is the difference between System.out.println and out.println in java

Answer Posted / vigneshwaran r.r

:) OMG.... out.println() is used in JSP, ofcourse right, but one thing we have to notice is, we had created the object for the class PrintWriter as "out". so we use that in JSP, if we create object for that PrintWriter class as "hello", we have to print line as hello.println()..

System.out.println() is the standard method that used to print a line. here System is the Class and out is its object and println() or print() are the method that are in the System class. Generally System class has three object in-built (in, out, err)

Is This Answer Correct ?    24 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How are the elements of a cardlayout organized?

594


To what value is a variable of the string type automatically initialized?

605


How would you detect a keypress in a jcombobox?

671


How many times may an objects finalize() method be invoked by the garbage collector?

668


What are local interfaces? Describe.

695






Is the session factory thread safe?

668


How to pass parameters in RMI?

1684


what is handle?

1845


how to make a index.jsp for running the site in internet and find an error for connection with weblogic server and java that give an error invalid object name.and how to maintain session.

1746


What is the map interface?

609


what is the use of State Factories?

1905


What is ioc concept & explain it?

617


What is a tasks priority and how is it used in scheduling?

542


Why a component architecture for the java platform?

570


How database connectivity in XML is achieved?

1765