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 / rushi shah

The above code given by Udaykiran gives the following error even before it is compiled:

Can not instantiate the type 'Test' type.

Which means that we can not create any object of interface.

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How many return statement are allowed in a function?

883


What will happen if static modifier is removed from the signature of the main method?

909


Explain about core java?

1058


Can main() method in java can return any data?

1111


What is consumer interface?

946


What do you mean by order of precedence and associativity?

892


What are the practical benefits, if any, of importing a specific class rather than an entire package (e.g. Import java.net.* Versus import java.net.socket)?

1076


Will the compiler creates a default constructor if I have a parameterized constructor in the class?

1043


What is variable and its types?

968


What is concurrent hashmap and its features?

1020


What is java console application?

943


What does it mean that strings are immutable?

1074


What is the difference between import java.util.date and java .util?

1003


What are different types of classloaders?

977


What are internal and external variables?

905