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

That it is not creating the instance of the interface. The
class which is there on the right side is called anonymas
call.
It is correct when the statement is as below
Test t =new Test(); he should give the ';' after the
paranthesis not after the '}'.

Please refer anonymas classes for other information how
they works...

Is This Answer Correct ?    37 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is maximum size of arraylist in java?

1020


How do you stop a thread in java?

1050


Give us the name of the list layoutmanagers in java?

924


When is update method called?

1140


How to check if linked list contains loop in java?

896


What is command line used for?

1088


What are exceptions

1096


Can you give few examples of final classes defined in java api?

1000


Explain about java sdk?

1032


What is constructor and virtual function? Can we call a virtual function in a constructor?

1135


Can there be an abstract method without an abstract class?

935


Enlist diffrent types of inheritance supported by java?

917


Why is it called a string?

1002


What is Enum in Java?

1298


Explain reverse a linked list iterative solution in java?

919