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 a boolean in java?

1002


What is the difference between logical data independence and physical data independence?

979


Explain how can you debug the Java code?

1001


How many days will it take to learn java?

882


Do you know how to reverse string in java?

1087


Is void a wrapper class?

884


Can you make a constructor final in Java?

1061


What does opcode mean?

1000


What is byte [] in java?

956


Java is pass by value or pass by reference? Explain

933


Can you explain inner class.

1020


What is a "pure virtual" member function?

1041


What is difference between ++ I and I ++ in java?

910


How does finally block differ from finalize() method?

1000


What is skeleton and stub?

985