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 / srihari desai

System is a pre-defined class present in java.lang package.
System is a final class since it cant be extended.
There is one more pre-defined class called PrintStream
present in java.io package.
The Object of PrintStream class created as static in System
class.
In PrintStream class There are Total 9 Overloaded println n
print methods.
Each println/print methods takes different data type as a
parameter like
println(int)
println(float)
println(double)
println(short)
println(byte)
etc
Thank u 1 n all

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you convert boolean to boolean?

1159


When a lot of changes are required in data, which one should be a preference to be used? String or stringbuffer?

1240


Which method must be implemented by all threads?

1265


What is the difference between a field variable and a local variable?

1112


What are static variables and functions?

1152


What does java final mean?

1041


What is a programming object?

1109


What are the types of inner classes (non-static nested class) used in java?

1065


What are the rules for naming an array?

1060


Does java support function overloading, pointers, structures, unions or linked lists?

1109


Is sizeof a keyword in java programming?

1067


Explain the advantages of packages in java?

919


What is a short in java?

1048


Can you extend singleton class?

1105


What is the difference between double and float variables in java?

1155