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

What does null mean in java?

1125


What is boolean flag in java?

1147


What is a map? What are the implementations of map?

1148


Explain an algorithm to find depth of a binary tree.

1097


What is Major and importance difference between for and foreach loop ?

1201


What is the purpose of java?

1049


What is object class in java?

978


What is command line argument

1237


Why string is not thread safe?

1043


Can we pass null as argument in java?

1000


What is boolean data type in java?

1036


What is difference between char array and string?

1178


Is int primitive data type?

986


Are strings immutable in java?

1024


What is java basic concept?

1088