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 / ravi jain

In my point of view Uday is wrong..

In his code he creates a anonymous class that implements Test
interface.

so, we can't say this is an object of interface.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why are generics used?

915


What is string literal in java?

1001


Do extraneous variables affect validity?

879


What are methods and how are they defined?

1146


Define "Access specifiers" in java.

1127


Difference between Linked list and Queue?

984


What is basic syntax?

990


What are packages in java?

1483


Explain java heap space and garbage collection?

1012


What is the difference between a field variable and a local variable?

1035


Is this valid in java ? Can we instantiate interface in java?

932


why Java does not support multiple inheritances?

1122


What is string example?

1003


What is the purpose of the strictfp keyword?

1121


How can we avoid including a header more than once?

987