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 is the main purpose of java?

1095


What is the unit of plancks constant?

1046


Explain different states of a thread in java?

1058


What methods are used in Servlet?Applet communication?

2243


What are bind parameters?

1043


What is the difference between abstract classes and interfaces?

1023


What is the old name of java?

997


What is structure of java heap? What is perm gen space in heap?

1125


Explain the difference between jdk, jre, and jvm?

1041


How strings are created in java?

1035


Does java trim remove newline?

990


Can a class have multiple subclasses?

1106


What is exception in java?

1085


How to handle a web browser resize operation?

1076


What is basic syntax?

1038