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 sortedmap interface?

939


Can java object be locked down for exclusive use by a given thread?

948


what do you mean by classloader in java?

974


Can we declare a static variable inside a method?

954


Can we create our own daemon thread?

925


What is map java?

919


What is private public protected in java?

987


v-model life cycle

1994


What is the loop in java?

1050


What are the major advantages of internal iteration over external iteration?

986


Will the jvm load the package twice at runtime?

1043


What are the 4 types of characters?

950


What is lazy programming?

960


Is math an abstract class in java?

948


What is a top level class in java?

961