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 you create interface instance ?

Answer Posted / deepesh

Hi Uday.

Actually, in your problem, a reference of anonymous
inherently assigned to interface. In program, you no where
wrong, but instance of interface were not created, it
simply assigning the reference of anonymous class to
interface.. That is possible.

any way.. We can't create instance of interface.. In that
example only reference assignment to interface by anonymous
class.
Hope everybody can understand.

Is This Answer Correct ?    30 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Variable of the boolean type is automatically initialized as?

1002


Is it possible to cast an int value into a byte variable? What would happen if the value of int is larger than byte?

945


If try block is successfully executed, Then Is Finally block executed?

1079


What is tochararray in java?

932


If an application has multiple classes in it, is it okay to have a main method in more than one class?

1007


What is difference between array and arraylist in java?

985


What is a vector in java?

1020


What is vector?

1050


What is * argv?

1226


How many bytes is a string java?

1015


What is the access scope of a protected method?

1019


What is a class in java?

1003


What are the methods used to implement for the key object in the hash map?

1032


What is thread safe java?

911


What is serialization in java?

1056