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

Where import statement is used in a java program?

1081


How many types of memory areas are allocated by JVM in java?

1016


What is meant by collection in java?

1009


What is the difference between logical data independence and physical data independence?

984


Does list maintain insertion order java?

860


How does arrays sort work in java?

963


What are sets in java?

890


What is functional interface in java example?

937


What does int [] mean in java?

977


Is empty .java file name a valid source file name?

1062


What is Classloader in Java?

1134


What is passed by reference and pass by value ?

986


What do you mean by inner class in java? Explain

1009


Define an applet in java?

1085


What does sprintf return?

1011