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 is parameters example?

1089


What is meant by local variable and instance variable?

1049


Is null keyword in java?

998


How we can run a jar file through command prompt in java?

1011


How to instantiate static nested classes in java?

1131


Can you use this() and super() both in a constructor?

1034


What is the difference between Array and Hash Table?

1074


What is the significance of continue jump statement? Explain with an example.

1349


Why does my function print none?

1000


Can we print null in java?

1092


What are the main uses of this keyword?

1117


Will set allow duplicates in java?

1022


What access modifiers can be used for class ?

1071


What is fail fast in java?

1244


I want to print “hello” even before main is executed. How will you acheive that?

1147