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 does indexof work?

902


Can an integer be null java?

942


What is mean by exception?

981


What is scanner in java?

915


What are the types of java languages?

933


What are the restriction imposed on a static method or a static block of code?

1007


What is the difference between yield() and sleep()?

969


What is balanced tree in java?

918


What does flag mean in java?

981


Can a static class implement an interface?

1067


How do you declare a string variable?

969


What are the different types of data structures in java?

948


What do you mean by singleton class in java?

865


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

1094


What is an infinite loop?

1151