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

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

693


Do you think that java should have had pointers?

600


What is ioc concept & explain it?

621


What is bean? Where can it be used?

577


What value does read() return when it has reached the end of a file?

549






What is a class loader?

586


Difference between new operator and class.forname().newinstance()?

600


Why use POJO when I can use hashmap

2045


What event results from the clicking of a button?

695


Will the general public have access to the infobus apis?

530


What class is used to create Server side object ?

1669


If your ui seems to freeze periodically, what might be a likely reason?

545


What are the different class loaders used by jvm?

597


Can we sent objects using Sockets?

645


What is Remote Server?

1682