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 a instance for intwerface?

Answer Posted / subhash

No.We cannot create instance for interface.But we can
create reference to an interface.We can implement the
interface by creating sub class(implementation class) and
creat instance to the sub class, then you can create
reference to the interface by assigning instance of sub
class to the interface reference variable.

Is This Answer Correct ?    8 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the difference between map and flatmap stream operation?

1267


What is the syntax and characteristics of a lambda expression?

1045


What is unsigned char?

1069


How does java pattern compile work?

963


What are encapsulation, inheritance and polymorphism?

1012


What happens if we don’t override run method ?

1005


what is static import in java? Explain

1016


Is java still relevant?

977


Which container method is used to cause a container to be laid out and redisplayed in java programming?

1109


Which is bigger float or double java?

978


What is the difference between static binding and dynamic binding?

1127


What is the difference between comparison done by equals method and == operator?

1023


What is oop in java?

1058


What is the null?

1022


Is this valid in java ? Can we instantiate interface in java?

983