explain about casting of objects?

Answer Posted / rajesh

Casting can be applied to data types for like narrowing and
widening of primitive data types.
Casting can be applied for objects instantiated from the
inheritance hierarchy but only upward casting.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is a thread pool in java and why is it used?

522


When arithmeticexception is thrown?

571


Explain OOPs concept.

640


What do you mean by collectors in java 8?

533


What is a java predicate?

526






Can a static class have a constructor java?

535


How can you traverse a linked list in java?

668


What are memory tables?

599


Is overriding possible in java?

493


What is a platform?

532


How do you get the length of a string in java?

514


Can a constructor call the constructor of parent class?

528


what is meant by Byte code concept in Java?

589


What is boolean query?

521


Explain hashset and its features?

568