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?

Answers were Sorted based on User's Feedback



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

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

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

Answer / janet

When the object implements the referenced interface, an
object reference be cast to an interface reference.

Is This Answer Correct ?    3 Yes 0 No

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

Answer / debapriya maity

Exactly whenever ur entity passed the IS-A Test ,

A is B :)

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More Core Java Interview Questions

How many days will it take to learn java?

0 Answers  


What is bubble sorting in java?

0 Answers  


Can we sort list in java?

0 Answers  


Program to output as below formate: 1 2 3 4 5 6 7 8 9 10

4 Answers   Huawei,


Why webdriver is an interface?

0 Answers  


What is an array length?

0 Answers  


How can two threads be made to communicate with each other?

3 Answers   HCL,


What is a linkedhashmap java?

0 Answers  


Name the method that used to clear the buffer ?

2 Answers  


Explain about procedural programming language or structured programming language and its features?

0 Answers  


When you declare a method as abstract method ?

2 Answers   HP,


which class is the wait() method defined in? : Java thread

0 Answers  


Categories