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 is the difference between numeric and integer?

948


What is a for loop in java?

991


What happens if main method is not static?

949


How would you format a date in java? I.e. In the ddmmyyy format?

1316


Write a function to print Fibonacci series and Tribonacci series?

1126


What is overloading and overriding in java?

1158


What is visibility mode?

896


What is the reflection?

944


Name some OOPS Concepts in Java?

1019


What is general methodology?

979


What is off heap memory?

936


Is it possible to override the main method?

927


What are the restriction imposed on a static method or a static block of code?

996


How many bits is a string in java?

965


Why inputstreamreader is used in java?

958