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

Why hashmap is used in java?

1078


Which arithmetic operations can result in the throwing of an arithmeticexception?

1010


Is java owned by oracle?

1000


What is a conditional statement explain with example?

1008


What do you mean by default constructor in java?

1058


Can we sort arraylist in java?

977


How does compareto method work?

958


What is the basic difference between string and stringbuffer object?

1073


What does nullpointerexception mean?

1076


How to check if a list is sorted in java?

1025


what is a thread pool in java and why is it used?

990


Is math an abstract class in java?

996


What is the major drawback of internal iteration over external iteration?

1014


What access modifiers can be used for variables?

1137


What are the different types of garbage collectors in java?

1123