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

hey uday u r wrong
In your program you are not created obj for interface, you have given anonymous implementation for 'Test' interface and instantiated that anonymous class only but not the interface.
for conformation call getClass() on 't'.(t.getClass())

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are examples of modifiers?

1115


What is the use of java?

953


what state does a thread enter when it terminates its processing? : Java thread

1047


What is the default value of an object reference declared as an instance variable?

1118


Is there any tag in htm to upload and download files?

1043


How do you reverse a string in java?

1106


How to create a custom exception?

988


What is methodological framework?

1038


What is this () in java?

1018


Can one thread block the other thread?

1025


What is the difference between pass by reference and pass by pointer?

1088


What is exception propagation?

1129


What is the use of System class?

1157


Why java is considered dynamic?

1169


What are thread safe functions?

946