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 a class object?

972


Can a final variable be initialized in constructor?

971


What is nullpointerexception in java?

1154


Can we override a variable in java?

1014


What is a "pure virtual" member function?

1098


Why are the objects immutable in java?

986


What is lambda expression in java?

1039


List types of storage classes in java?

1150


What are the concepts of 'OOPS'?

1074


What methods are used in Servlet?Applet communication?

2246


Can we call thread start () twice?

963


How do you compare objects in java?

955


What is locale in java?

1018


What are "class access modifiers" in Java?

1133


What does += mean in java?

1084