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

Is an empty arraylist null?

1143


What is the implementation of destroy method in java. Is it native or java code?

1019


What do you understand by the term polymorphism?

1128


Explain thread in java?

1232


Can final class have constructor?

971


Is string a datatype?

1037


What are the types of methods in java?

1176


Should a main method be compulsorily declared in all java classes?

1130


Can we inherit a class with private constructor?

1177


Distinguish between a predicate and a function?

1043


Can It is possible to synchronize the constructor of a Java Class?

1212


Why put method is idempotent?

970


Can singleton class be serialized?

1009


What are the pillars of java?

968


What are the types of strings?

1089