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

Why we use methods in java?

1004


What are data types in oop?

1039


How do I type unicode?

986


Where is const variable stored?

940


Can variables be used in java without initialization?

1090


How many arguments can be passed to main ()?

997


Write code of any action class?

1022


What is difference between final and immutable?

1152


What is substring 1 in java?

1167


What is hashset in java?

1149


What is a java object and java application?

1059


What is an example of procedure?

1041


Difference between overriding and overloading in java?

1076


What are heap memory and stack memory and what are memory tables.

990


How to optimize the javac output?

1023