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 / bharat vandar

No we can instantiate interface directly.but we can create
instantiate of interface in directly,only class can create
an object of interface


interface x
{
public void abc();
}
class ac implements x
{
x at = new ac();

public void abc()
{
System.out.println("Bharat");
}
}

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is core java called?

920


What are the various access specifiers for java classes?

1000


What is the difference between numeric and integer?

948


What are aggregate functions explain with examples?

1000


What is difference between wait and notify in java?

1056


Is java se free?

884


How does list work in java?

863


What is java console application?

943


How does class forname work in java?

912


What is the constructor?

988


What is json parser in java?

1009


What is casting in java programming?

971


Can we pass a primitive type by reference in java? How

855


What are the three best choices for a development environment?

1048


How will you serialize a singleton class without violating singleton pattern?

1900