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 diamond operator in java?

902


What is == and === in javascript?

1007


Tell me a few examples of final classes defined in Java API?

1033


What is thread safe java?

874


Is age discrete or continuous?

1072


What do you understand by private, protected and public?

1003


What does || || mean in math?

886


Is java free for businesses?

1022


What is the difference between sleep and wait in java?

913


Convert Binary tree to linked list.

1024


What is var keyword ?

1137


What is difference between final and finally in java?

1038


How does java enable high performance?

1098


What are the different types of methodologies?

954


What is difference between arraylist and list in java?

1032