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 we instantiate Interfaces?

Answer Posted / paletipatisrinu

No we can instantiate interface directly.but we can create
instantiate of interface in directly

interface i1
{
public void wish();
}
public class A implements i1
{
public static void main(string...arg)
{
i1 o1=new A();
o1.wish();
}
public void wish()
{
System.out.println("we can create instantiate in directly");
}
}

Is This Answer Correct ?    17 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a flag and how does it work?

936


Difference between class#getinstance() and new operator ?

1137


What methods are used to get and set the text label displayed by a button object?

956


What is the use of coding?

910


Explain heap sort?

1042


In which language java is written?

923


What is a string what operation can be performed out with the help of a string?

967


Which is bigger double or float?

910


What do you mean by mnemonics?

999


What about interthread communication and how it takes place in java?

990


What does math floor () do?

917


What is the size of int in 64-bit jvm?

1010


List the features of java programming language.

971


Can finally block be used without a catch?

928


What is an eror in java?

988