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 the difference between menuitem and checkboxmenu item?

1338


What is the meaning of find and replace?

1031


List types of storage classes in java?

1149


Highest level event class of the event-delegation model?

4009


Given a singly linked list, find the middle of the list in a single traversal without using temporary variable.

1052


What if constructor is protected in java?

1120


Why synchronization is important in java?

1043


What is qualitative variable?

928


Why is flag used in java?

1070


What is the difference between yielding and sleeping in java programming?

1158


How can we create an immutable class in java?

1066


What is type safety in java?

949


What are the different types of constructor?

994


If A Class Is Declared Without Any Access Modifiers, Where May The Class Be Accessed?

1181


What mechanism does java use for memory management?

976