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 / chandan

because a class is a logical structure and its definition is
group of entities but when we need some functionality we
need to define inside the function

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is class and object in java?

956


Is null a string?

948


What is null statement?

953


How to overcome the exception object reference not set to an instance of object?

1109


Why packages are used?

1401


Why to use nested classes in java? (Or) what is the purpose of nested class in java?

1025


What is variable in java?

924


What is http client in java?

1030


Explain the purpose of garbage collection in Java?

980


Assume a thread has lock on it, calling sleep() method on that thread will release the lock?

1053


What is the difference between assignment and initialization?

1007


how to write a program for sending mails between client and server

2032


Explain some best practices you would apply while using collection in java?

991


What is java oops?

1009


Can inner class have constructor?

1000