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...

define System.out.println(); what is the meaning!

Answer Posted / dheeraj singh rajput

System is a class made available by Java to let you
manipulate various operating system related objects. It's
part of java.lang namespace.

out, being one of those objects, is a static publicly
available object inside that class. The object itself,
representing standard output, is an instance of
java.io.PrintStream class. Standard output is, on most
operating systems, console output.

println is a method of java.io.PrintStream class that lets
you output some text into the stream and, as opposed to
print() method, gets you to the new line after the text.

Check out the source for more information.

[EDIT, answer to "Additional details"] You don't need to
import java.io.* because System is part of available to all
Java calls package java.lang (you don't need to import
that). Even though out is an instance of
java.io.PrintStream, it is still declared *inside* the
System class and therefore, you do not need to import java.io.

Of course, implementation of java.lang.System needs to
import java.io (and many other packages). You can see it in
the source:

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are actual parameters?

965


What is the method in java?

1021


Is integer a class?

1014


What does  mean in regex?

987


what is the major difference between linkedlist and arraylist in java?

1099


What do you mean by ordered and sorted in collections in java?

943


Write a program to find maximum and minimum number in array?

939


What is super?

1049


What does the append?

942


Difference between serialization and deserialization in java?

1077


What is the use of object and class classes?

994


What about abstract classes in java?

1014


What are three advantages of using functions?

955


Why parsing is done?

917


What happens if an exception is throws from an object's destructor?

986