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 use of map in java?

1058


Define Multiprogramming and Multiprocessing in java.

1222


What is a buffer in computer?

1063


What does a za z0 9 mean?

1186


Can a method be overloaded based on different return type but same argument type?

1017


What is the functionality of the stub?

1084


How a variable is stored in memory?

1048


How is string immutable in java?

1084


Can keyword be used as identifier?

1017


Why method overriding is used?

1165


What is data type in java?

945


What is the access scope of protected access specifier?

1042


What do you mean by inner class in java?

1148


What do you mean by global variable?

998


What is token in java?

1074