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 java jit compilers?

1057


What is an infinite loop? How infinite loop is declared?

1166


Is singleton set an interval?

1015


How do you trim a space in java?

1024


Can a source file contain more than one class declaration?

1048


What is "this" keyword in java? Explain

1141


How to perform merge sort in java?

1114


What is java and its types?

1161


What is a class variable?

1095


How do you reverse sort a list in java?

989


If a class is declared without any access modifiers, where can the class be accessed?

1103


Can we define private and protected modifiers for the members in interfaces?

1150


Is null a keyword in java?

1020


When should I use singleton?

1096


What is difference between call by value and call by reference?

1061