Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

explain System.out.println

Answer Posted / lakshmi

System.out.prinltn

System
--------
> pre-defined class in java.lang package
out
--------
out- it is a static variable inside System class of type PrintStream(class reference variable)
(ie) static PrintStream out;
and PrintStream is a predefined class in java.io package.
since its static thats why we are calling
System.out
so System.out means we are getting the reference to the object of type PrintStream

println
-------
println is the method in PrintStream class for Standard output stream.
so to access println method , i need PrintStream object which we are getting through System.out.
so finally
its System.out.println---- to produce standard output Stream
println-method name

Is This Answer Correct ?    65 Yes 11 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the differences between stringbuffer and stringbuilder?

1059


What is the use of 'super' keyword inside a constructor?

972


Do extraneous variables affect validity?

913


What is private static in java?

1041


How does regex work?

962


What are the important features of Java 11 release?

1118


What is the use of put method?

953


What is default size of arraylist in java?

1156


Can we have more than one package statement in the source file?

1058


What are the advantages of exception handling in java?

1061


What are the two types of java programming?

1062


Why set is used in java?

1018


Explain different ways of creating a thread. Which one would you prefer and why?

1039


How will you print number in reverse (descending) order in BST.

982


What restrictions are placed on method overriding in java programming?

1002