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

No,Uday is wrong.
He has created an anonymous inner class Test with the same
name as interface Test.It doesn't depend on the interface Test.
If an instance for interface Test has to be created ,he
sholud have implement interface Test such as
class Main implements Test{
}

Is This Answer Correct ?    17 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are different type of exceptions in java?

928


How do I run java on windows?

1106


What is strings in java?

997


What will happen if a thrown exception is not handled?

966


Explain throw keyword in java?

1000


Why does java not support operator overloading?

1094


What is a flag value?

965


Can we declare the main method of our class as private?

959


Can a method inside a interface be declared as final?

961


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

1091


What is string manipulation?

958


How do you identify if jvm is 32-bit or 64-bit from java program?

918


Which package is imported by default?

1040


What data type is a string?

974


How to read and write image from a file ?

1005