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 ?    5 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

When will we prefer to use set and list in java and why?

550


Can one thread block the other thread?

614


Explain different ways of creating a thread. Which one would you prefer and why?

583


What is executor memory?

534


Explain about strings in java?

628






What are inbuilt functions?

575


What is anagram word?

527


What is final int?

535


What is the base class of all exception classes?

595


Why do we use string?

581


What are the types of inner classes (non-static nested class) used in java?

578


What is a nullable field?

583


Explain about the interpreter in java?

637


Are global variables initialized to zero?

521


Is list thread safe in java?

498