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

Does substring start with 0?

1028


What are the methods used to implement for the key object in the hash map?

1086


How is treeset implemented in java?

1083


Why do we need singleton class?

1044


What does += mean coding?

994


Explain the importance of thread scheduler in java?

1057


How to make a non daemon thread as daemon?

1110


What is a static class in java?

1052


What is the difference between exception and error in java?

1063


What is return data type?

1055


What is array class in java?

1115


Difference between association, composition and aggregation?

1037


Can you extend singleton class?

1155


What is parameter example?

1073


How do you include a string in java?

1054