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

Why use a datasource when you can directly specify a connection details?

534


what are RemoteObjects?

2260


What are the steps to write p-to-p model application?

1961


what is a non-repeatable read?

1830


How are the elements of a borderlayout organized?

597






Explain about RMI Architecture?

612


Difference between swing and awt?

603


Explain the difference between object state and behavior?

568


What are externizable interface?

586


What are the difference between RMI and CORBA?

621


What happens when a thread cannot acquire a lock on an object?

541


How will you pass parameters in RMI? Why do you serialize?

694


Do we need to override service() method

1145


What is RMI and what are the services in RMI?

609


what is Activation Instantinator?

1912