explain about casting of objects?

Answer Posted / niranjanravi

Casting betrween object references is to refer to a object
compatible by class or interface or array type reference.

Is This Answer Correct ?    4 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the ways in which a thread can enter the waiting state?

483


What causes memory leaks in java?

460


What are triggers in DB? Explain their types. How do they work?

597


What is the main use of java?

553


Is there any case when finally will not be executed?

503






Can static methods be inherited?

508


What purpose do the keywords final, finally, and finalize fulfill?

586


Which variables are stored in heap?

520


What are the main uses of java?

503


What is protected in java?

508


What is 32 bit float?

526


How does linkedhashmap work in java?

495


Explain about wait() method?

539


Define jit compiler?

635


Explain polymorphism citing an example.

566