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

Does list allow duplicates in java?

975


Why do we use predicate in java?

1088


Why is a singleton bad?

1001


What is thread start?

1013


How to check if linked list contains loop in java?

953


How do you declare a variable?

1138


What steps are taken when the OS shifts from one-thread execution to another?

1410


Give an example of call be reference significance.

1076


How many bits is size_t?

1027


What are the differences between forwarding () method and sendredirect() methods?

1144


What is a cup of java?

1059


What is string intern in java?

1085


Highest level event class of the event-delegation model?

4064


What is the use of put method?

1000


How many bytes is a string?

1172