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

can we create instance for interface in java?

Answer Posted / jyotisubhra ghosh

You can not instantiate an interface,however, u can create
its reference variabe.

You can just assign an object of a class (implementing the
interface) to the reference variable of the interface.

Is This Answer Correct ?    50 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is empty set an element of empty set?

1163


What is array and arraylist in java?

1160


Explain the different forms of polymorphism?

1052


What does localhost mean?

1004


What is singleton service?

1020


Give differences between Quicksort &Mergesort. When should these sorts be used andwhat is their running time in java?

1283


What is the maximum size of arraylist in java?

1058


How would overload a function based on return type?

1026


Is arraylist sorted in java?

1056


What is return keyword in java?

1102


What is the right data type to represent a price in java?

1016


What is the order of arraylist in java?

1177


What is the use of private static?

1092


What is += mean in java?

1046


What occurs when an object is constructed?

1060