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

How do you avoid global variables?

1015


What is a nonetype?

1037


What is the difference between a local variable and an instance variable?

1015


What are the properties of thread?

860


Write a program to calculate factorial in java?

950


Can an interface be defined inside a class?

999


What is the purpose of javac exe?

1023


Can we have static methods in an interface?

997


what is static import in java? Explain

960


What is an example of declaration?

945


What is a blocking method in Java?

1128


What is a conditional statement explain with example?

958


Is a class an object?

941


How to print nodes of a Binary tree?

2198


How do you achieve singleton?

892