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

Why charat is used in java?

994


What is difference between overloading and overriding in java?

973


What are the loops in java?

954


What are abstract classes and anonymous classes?

1030


'A class is a template for an object' explain this statement.

998


How can you avoid serialization in child class if the base class is implementing the serializable interface?

1030


Does list maintain insertion order java?

865


What is a text string?

1039


How do you define a singleton class?

1017


What are serialization and deserialization?

1205


Define an applet in java?

1096


What is callablestatement? How you can call stored procedure to pass in parameter?

986


What is method overloading in java ?

1035


What does void * mean?

967


What is sortedset in java?

982