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 / deepesh

Hi Uday.

Actually, in your problem, a reference of anonymous
inherently assigned to interface. In program, you no where
wrong, but instance of interface were not created, it
simply assigning the reference of anonymous class to
interface.. That is possible.

any way.. We can't create instance of interface.. In that
example only reference assignment to interface by anonymous
class.
Hope everybody can understand.

Is This Answer Correct ?    30 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can you sort a list in java?

1029


What is the benefit of using enum to declare a constant?

1165


What is the file extension for java?

1120


Is java good for beginners?

1057


How are variables stored?

1031


which class is the wait() method defined in? : Java thread

994


What is JVM and is it platform independent?

1104


What language is java written?

1056


What does the @override annotation do?

1092


How are the elements of a gridbaglayout organized in java programming?

1025


What is sortedset in java?

1072


What are different data structures in java?

1086


If a method is declared as protected, where may the method be accessed?

1066


How to invoke external process in java.

1126


What are the main uses of this keyword?

1120