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 / dipanjan paul

'System' is a class in 'java.lang' package, which is a
final class(can not be inherited) and its constructor is
private(can not be inherited)
'out' is a static member variable of 'System' class which
is of type 'PrintStream'
'println()' is a method of 'PrintStream' class
So 'System.out.println()' means calling of method 'println
()'of the static 'PrintStream' type variable 'out'
of 'System' class.
And is used to print a String to the system console.

Is This Answer Correct ?    25 Yes 13 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the main purpose of java?

1095


What type of variable is error flag?

1067


What is the difference between checked exception and unchecked exception?

1015


What is the difference between a scrollbar and a scrollpane?

1050


Are private methods final?

901


what is session in java?

1247


What is not thread safe?

982


If an object is garbage collected, can it become reachable again?

994


How do you write a scanner class in java?

1015


If we don’t want some of the fields not to serialize how to do that?

1009


What is mutable object and immutable object?

1123


What is difference between core java and java ee?

895


Can we inherit inner class?

1012


How do you convert an int to a string in java?

1130


What is the purpose of using break in each case of switch statement?

1027