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

Why cant we define System.out.println() inside a class
directly?

Answer Posted / venkatachalapathy

we Directly write this line i.e System.out.println()
directly inside a class because println method is static
method in output stream class which are sub classes of
system class.
so every time this method is overridden in our program....
so static methods doesnt require a creation of object.....

Is This Answer Correct ?    3 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is constructor chaining and how is it achieved in java?

1150


Is java still relevant?

977


What means public static?

1038


What is the primary benefit of encapsulation?

1085


Explain the difference between abstraction and encapsulation.

978


Explain differences between collection api and stream api?

1180


Which category the java thread do fall in?

999


what is thread? What are the high-level thread states? Or what are the states associated in the thread? : Java thread

984


Why does abstract class have constructor?

1004


What is the difference between a vector & an array list?

1166


Tell me about different OOPS concepts.

1002


what is a thread pool in java and why is it used?

1003


How is tree Mirroring implemented?

1078


What are green threads in java?

1001


What is Java Shutdown Hook?

1198