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 / sagar g

System : The System is a class and cannot be instantiated.

out : Its a static field with type PrintStream of System
class and object of PrintStream class.

println : Its a method of PrintStream class.

As "println()" is a method of PrintStream class and "out"
is an object of PrintStream class, object can call its
public method "println()"
out.println();

Since "out" is static , it so that it is called using class
name "System"
System.out.println()

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How does callback work in java?

1121


What does exclamation mean in java?

1181


What about main thread in java?

1170


What are class types in java?

1115


Which is better list or arraylist in java?

907


What are methods of a class?

1080


Does treeset use compareto?

1024


What is the purpose of assert keyword used in jdk1.4.x?

1125


How do you compare two strings lexicographically?

977


What are the 8 data types in java?

1043


What is the purpose of static methods and static variables?

1127


What are the elements of java?

1065


What is jee6?

1188


Can you call a method in a method?

1166


What is an immutable class? How to create an immutable class?

1115