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

Hi,
We can't create instance for an interface or abstract
class.Just remove the following code from the program
written by Uday.
interface Test
{
public void wish();
}
Remove the above code and run the program,then program will
compile and execute properly,because he used anonymous class.

Is This Answer Correct ?    11 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

When super keyword is used?

1010


What is navigable map in java?

988


What is pass by value?

945


How do you reverse sort a list in java?

940


What is difference between static and abstract class?

1004


Difference between current previous versions of Java?

1027


What is mnemonic code?

1018


What does flag mean in java?

1022


What is a module function?

1104


What if I write static public void instead of public static void in java?

1091


What are the limitations of procedural programming approach?

1055


How to find the index of the largest number in an arraylist java?

1036


What are the types of arrays in java?

1090


How can you read an integer value from the keyword when the application is runtime in java? example?

1134


What is a subsequence of a string?

1068