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

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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which is bigger float or double java?

514


What’s the difference between constructors and other methods?

526


What do you mean by constant time complexity?

594


What is a boolean output?

515


Difference between static binding and dynamic binding?

556






What is class and object in java?

545


What is the maximum size of array in java?

510


What is illegal identifier in java?

525


Why java is platform independent? Explain.

595


How can you generate random numbers in java?

577


Explain exception chaining in java?

599


Assume a thread has lock on it, calling sleep() method on that thread will release the lock?

616


What are the two ways of implementing multi-threading in java?

804


What is the use of keywords in java?

545


What is complexity in java?

513