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 / ramu

hey uday u r wrong
In your program you are not created obj for interface, you have given anonymous implementation for 'Test' interface and instantiated that anonymous class only but not the interface.
for conformation call getClass() on 't'.(t.getClass())

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can a private method of a superclass be declared within a subclass?

974


what are the methods in object?

1100


What is a qms manual?

949


What is a nested class?

1068


What is stringreader?

907


Is zero a natural number?

985


What is the difference between access specifiers and access modifiers in java? 16

962


Can I import same package/class twice?

896


What are desktop procedures?

1013


What are the types of strings?

987


How does singleton class work?

938


Write a program to print 15 random numbers using foreach of java 8?

896


What is stack example?

966


What is immutable data?

1000


What is the impact of declaring a method as final?

973