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...

IN java collections we have both interfaces and classes.
instead of using interfaces why we can't use classes only
like that why we can't use interfaces only. why we need two
things interface and class.

Answer Posted / rajesh r

In a word to achieve Polymorphism

Is This Answer Correct ?    0 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which of the following classes will have more memory allocated?

1023


What is purpose of applet programming?

1200


What are the restrictions imposed by a Security Manager on Applets?.

2623


What are different types of constants?

1063


What is the purpose of static methods and variables?

1052


Explain listiterator and methods in listiterator?

1029


What is jagged array in java?

1101


Can Exception handling we can handle multiple catch blocks?

1049


What is replacefirst in java?

1122


How do you convert bytes to character in java?

1020


Does every java program need a main?

1006


How to create an interface?

1096


Can constructor be static or final?

1107


what is singleton in java?

1065


Can a method be overloaded based on different return type but same argument type?

983