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

what uday did here was not creating the instance of the interface but he implemeted the interface through the anonymous class.Now the instance created is of that anonymous class which has implemented the interface and its reference is stored in the variable t.

Regards
Sandeep

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is replaceall in java?

1033


What is an array in java?

1206


Which class is the superclass for every class in java programming?

1000


What is the difference between JDK and JVM?

1273


Write a program to print fibonacci series

1161


What is the exception hierarchy in java?

965


How can you set an applet’s height and width as a percentage?

934


Write java program to reverse string without using api?

1068


What are alternatives to java serialization?

1128


Can there be an abstract method without an abstract class?

958


Explain aggregation in java?

979


What are actual parameters?

1039


How can you handle java exceptions?

1033


Can we declare a class as static?

1099


How we can execute any code even before main method?

1147