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

Can we sort hashmap in java?

911


What is * argv?

1178


Give a brief description of java socket programming?

919


What are the differences between throw and throws?

1036


What are the actions that can occur when a thread enters blocked state?

1018


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

929


What is operator overloading. Is it is supported in java?

968


What is an enumeration?

1014


What is supplier in java?

964


What is sortedmap interface?

947


Difference between Preemptive scheduling vs. Time slicing?

984


What is string builder in java?

961


When to use runnable interface vs thread class in java?

939


What are the practical benefits, if any, of importing a specific class rather than an entire package (e.g. Import java.net.* Versus import java.net.socket)?

1080


Can you start a thread twice in Java?

1069