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
How are the elements of a cardlayout organized?
To what value is a variable of the string type automatically initialized?
How would you detect a keypress in a jcombobox?
How many times may an objects finalize() method be invoked by the garbage collector?
What are local interfaces? Describe.
Is the session factory thread safe?
How to pass parameters in RMI?
what is handle?
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.
What is the map interface?
what is the use of State Factories?
What is ioc concept & explain it?
What is a tasks priority and how is it used in scheduling?
Why a component architecture for the java platform?
How database connectivity in XML is achieved?