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

how system.out.println() works?

Answer Posted / subbu

//the System class belongs to java.lang package
class System {
public static final PrintStream out;
//...
}

//the Prinstream class belongs to java.io package
class PrintStream{
public void println();
//...
}

java.lang package is default package hence no need to import
additionaly to use System class

System is having static reference of PrintStream class whihc
has println() method.

So we can directly acces the println() using out referece.

System.out.println();

Is This Answer Correct ?    16 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What means public static?

995


What is enhanced loop in java?

930


Which is better list or arraylist in java?

809


Difference between nested and inner classes ?

1052


What are keyboard events?

1094


Explain the importance of finally block in java?

905


Why there are some null interface in java? What does it mean?

1052


Can a string be null?

924


what is the difference between process and thread? : Java thread

925


What is the use of math abs in java?

960


How can we make copy of a java object?

1075


What are thread priorities and importance of thread priorities in java?

1061


What is methodological framework?

973


Can memory leak in java?

983


make a method which any number and any type of argument and print sum of that arguments.....

1748