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 / rasmitha

No,But we can Create reference for interface.
For Example.

java.sql.Connection is an interface,But in the
Establishmentof the Database Connetion.

Connection con = DriverManager.getConnetion();

con is an ref Varieble that holds Connetion Object yar..

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are pass by reference and pass by value?

988


What is the tradeoff between using an unordered array versus an ordered array?

1239


How do you do exponents in java?

1057


Which access specifier can be used with class ?

1000


Explain the Propertie sof class?

1050


What is difference between equal and == in java?

959


What is the difference between notify and notifyall method?

1218


What is illegal identifier in java?

1014


Why is java called the platform independent programming language?

1006


Can we use string in switch case in java?

1056


Define interface in java?

1079


Explain exception chaining in java?

1169


Give few examples of final classes defined in Java API?

1202


Can keyword be used as identifier?

963


What is meant by distributed application? Why are we using that in our application?

947