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

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

1096


What is a native method in java programming?

1069


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

970


What is the use of runnable interface?

1175


why we use merge option in hybernate pls give a ex snippet

1997


What is extension method in java?

1043


Where are global variables stored?

957


How do you identify independent and dependent variables?

1008


What is the concept of multithreading?

991


What is the benefit of using enum to declare a constant?

1104


Is java a pure object oriented language?

966


Write a program based on Java script program.

1142


What is the difference between @before and @beforeclass annotation?

1107


Is it possible to cast an int value into a byte variable? What would happen if the value of int is larger than byte?

955


Which collection is sorted in java?

1034