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

What are the actions that can occur when a thread enters blocked state?

1110


Can we have 2 main methods in java class?

1061


What is the difference between reader/writer and inputstream/output stream?

1128


Explain the available thread states in a high-level?

1009


How do you define a variable?

992


What is a conditional equation?

1095


How do you reverse a string in java without using string buffer?

1147


What are the differences between the constructors and methods?

1177


How are variables stored in memory?

1113


Describe what happens when an object is created in java ?

1063


Why main() method is public, static and void in java ?

1138


What all access modifiers are allowed for top class ?

1240


Write a program to check string is palindrome without using loop?

1087


What class allows you to read objects directly from a stream?

1378


What is thread count in java?

1052