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 an example of procedure?

1039


Can a final variable be null?

1021


Name few java.lang classes introduced with java 8 ?

993


Can a serialized object be transferred via network?

963


What is the difference between Java and C++?

1201


What happens when main () method is declared as private?

1145


How do you remove an element from an arraylist in java?

1012


What is map java?

981


What is connection class in java?

961


What are the differences between stringbuffer and stringbuilder?

1064


What are the types of methods in java?

1117


What are the new features in java 8? Explain

951


Can we create a constructor in abstract class?

983


What is the use of a conditional inclusion statement in Java ?

1095


What will happen when using pass by reference in java?

995