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

Answer Posted / vmpire

out.println() and System.out.println() both are using for display purpose
out.println() use in jsp code<%out.println("vmpire<'_'>")%>
System.out.println() is use for when you want print some on console
Here system is class and out is the static variable of System class of printstream class type println is static method of stream class

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Name three component subclasses that support painting?

611


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


How task's priority is used in scheduling?

1779


How to implement dphibernate to activate lazy loading in Flex with java ?thanx in advance!

2553


What is a clone?

572






What is the RMI and Socket?

623


Can you control when passivation occurs?

594


Which containers use a border layout as their default layout?

606


What is the immediate superclass of the applet class?

597


What is a modular application? What does module-relative mean?

538


Difference between swing and awt?

595


What is permgen or permanent generation?

581


What is a session? Can you share a session object between different theads?

554


Explain phantom read?

1734


Define the remote object implementation?

1997