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 is skeleton and stub? What is the purpose of those?

1025


how is final different from finally and finalize in java?

995


What is ellipsis in java?

1003


What is charat ()?

891


What is use of super keyword in java?

972


What is lambda expression in java?

964


What do you mean by platform independence of Java?

1066


What are exceptions

1035


What is structure of java heap? What is perm gen space in heap?

1049


What is the use of singleton?

906


What is the symbol for line break?

1031


What do you mean by object?

914


What restrictions are placed on method overloading?

1118


Why packages are used?

1373


How do you ensure that n threads can access n resources without deadlock?

1257