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 collection class in java?

1016


what is the constructor and how many types of constructors are used in java?

1005


Explain the selection sort algorithm?

1068


What does it mean to flush a file?

1075


What is high level language in computer?

1027


How to make a write-only class in java?

1071


Explain about field hiding in java?

951


Explain the usage of this with constructors?

1033


What is the purpose of extern variable?

1019


What is the access scope of protected access specifier?

1002


What is garbage collection? Can it be forced to run?

1014


Give the difference between the println method and sqrt method?

1090


What do you mean by garbage collection used in java?

1076


Which language is java?

991


What is the advantage of OOP in java?

1159