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

Give reasons supporting that string is immutable.

940


Can It is possible to synchronize the constructor of a Java Class?

1108


how we can make a read-only class in java?

982


What is set string?

1165


What is a protected void?

918


How does predicate work in java?

972


How can we create a thread in java?

1015


Does java map allow duplicates?

881


What is nan inf?

1067


How can you make a class serializable in java?

984


Can you call a method in a method?

1081


What do you understand by java?

969


What is parameters example?

1023


Can inner class be public in java?

1009


Can we use string in switch case in java?

1045