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

Why do we need array in java?

1012


Which access specifier can be used with class ?

995


Can subclass overriding method declare an exception if parent class method doesn't throw an exception?

1071


What is a bufferedreader?

1084


What is the use of jtable?

1120


What is bytecode in java ?

1184


What causes memory leak in java?

932


What is the importance of static variable?

1112


What is passing by reference in java?

1015


Can you create an object of an abstract class?

1017


Can we have try block without catch block?

1030


What is blank final variable?

1062


What is the maximum size of hashmap in java?

996


Can we call the constructor of a class more than once for an object?

1091


What is boolean logic?

1012