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 is Java Reflection API? Why it’s so important to have?

1241


Can we synchronize static methods in java?

1151


Explain the meaning of java applet.

1126


What are the drawbacks for singleton class?

1076


What is the difference between hashmap and hashtable in java?

1173


What is meant by the value of a variable?

983


What is the main purpose of java?

1152


What is meant by class and object in java?

1107


Why java is not 100% object-oriented?

1602


Why are constructors used?

1072


what methods would you overwrite in java.lang.object class?

1062


What is the purpose of abstract class?

1057


Can we create an object if a class doesn't have any constructor ( not even the default provided by constructor ) ?

1134


Is arraylist ordered in java?

1167


explain the concept of virtual method invocation in polymorphism in detail?

2269