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 broken and continue statement?

1001


What is the use of protected in java?

1027


What is purpose of keyword void?

1049


What is a instance variable in java?

1051


Explain list interface?

967


Can we use string in switch case in java?

1059


What are inner classes or non static nested classes in java?

1178


How can we make string upper case or lower case?

1081


What is map java?

981


What does system.gc() and runtime.gc() methods do?

1054


Can we have a try block without catch block?

987


What is string example?

1057


In the below example, how many string objects are created?

1048


Can we override the private methods?

1012


Can you give names of Container classes?

2307