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

Hi all,

I think Udaya is right and i have tested in the same and its
working. But if you think about the way JAVA has to make
instances(e.g. A a = new A()) will not work. It will give
you compilation error. So there is something we are not able
to see. Even I am trying to get what this example actually
working.

Feel free to update me if I am wrong...&#9786;

Is This Answer Correct ?    1 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the purpose of skeleton and stub?

1248


What is the purpose of checked and unchecked exceptions in JAVA?

1013


What is the use of protected in java?

1027


When should a function throw an exception?

1054


Why does java not support operator overloading?

1146


Will minecraft java be discontinued?

1172


Is java pass by value or pass by reference?

997


what is a thread pool in java and why is it used?

1004


How do you sort arraylist in descending order?

1023


How to perform quicksort in java?

1118


Explain some best practices you would apply while using collection in java?

1039


I want to print “hello” even before main is executed. How will you acheive that?

1097


What is flush () in java?

1013


Is boolean a wrapper class in java?

1061


What are the difference between composition and inheritance in java?

1029