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...

Under what circumstances an object reference be cast to an
interface reference?

Answer Posted / muthusenthil

when a class implements an interface then an object
referance of that class can be casted to interface referance

class A implements B{

public static void main(String args[]){
B b=new A();

}

Is This Answer Correct ?    6 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is JDBC Driver interface?How can you retrieve data from the ResultSet

2100


What is the advantage of functional interface in java 8?

987


Can you explain the usages of class.forname()?

1065


What are the wrapped, classes?

1048


Which is dependent variable?

894


what is singleton in java?

1043


What is unmodifiable list in java?

952


Explain the hierarchy of java exception classes?

1093


What kind of variables can a class consist?

1053


What are the steps involved to create a bean?

1151


What does || mean in code?

1031


What is the difference between form & report?

1034


What is string pool in java?

1017


How many bytes is a unicode character?

996


What is the new line character?

1171