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 a cup of java?

1010


Explain about serializable interface in java?

995


Why is the main method static?

1152


How transient variable is different from volatile variable?

1075


Can an abstract class be a final class?

978


What do you mean by garbage collection used in java?

1060


What happens when a thread cannot acquire a lock on an object in java programming?

1008


What are recursive functions?

1055


What is immutable data?

1048


What is the base class of all exception classes?

1062


Can you use this() and super() both in a constructor?

978


what is instanceof operator used in java?

1033


How can you write a loop indefinitely in java programming?

1024


Difference between serialization and deserialization in java?

1134


When would you use a static class?

978