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

How to solve the problem of generating the unique hash keys with hash function?

1950


When is the garbage collection used in Java?

1262


Can a set contain duplicates?

1002


What is the purpose of the wait(), notify(), and notifyall() methods in java programming?

1138


What is difference between array and arraylist in java?

1037


Is null keyword in java?

1001


How will you initialize an Applet?

1201


How many bytes is 255 characters?

1036


What is the role of garbage collector in java?

1015


What does compareto () do in java?

1056


What is used of static keyword in java?

1142


What is default size of arraylist in java?

1224


Is oracle charging for java?

1079


Write a java program to check if a number is prime or not?

1080


Can anonymous class have constructor?

1066