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 is passing by reference in java?

785


Is it possible to compare various strings with the help of == operator?

776


what is the major difference between linkedlist and arraylist in java?

815


What is method overloading and method overriding?

782


Differentiate between stringbuffer and string?

820


What if static is removed from main method?

814


Is java an ide?

752


What is the major drawback of internal iteration over external iteration?

816


Write a program to print fibonacci series

825


What type of language is java?

771


Why java applets are more useful for intranets as compared to internet?

826


Why strings in java are called as immutable?

794


What does .equals do in java?

735


Can a abstract class be declared final?

803


What are the different types of inner classes?

797