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 ?    7 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is an iterator interface in java programming?

547


What is a singleton class in Java?

522


What is the difference between procedural and object-oriented programs?

538


What is the properties class in java programming?

564


what is mutual exclusion? How can you take care of mutual exclusion using java threads? : Java thread

694






What is the significance of java packages?

630


What is charat ()?

540


Which is bigger float or double java?

546


What is data and its types?

582


What will happen if there is a default method conflict as mentioned above and we have specified the same signature method in the base class instead of overriding in the existing class ?

527


What do you mean by static variable?

592


State the merge-sort principle and its time complexity.

585


Can inner class have constructor?

561


What does the “final” keyword mean in front of a variable? A method? A class?

555


What will happen if non-synchronized method calls a static synchronized method and what kind of lock it acquires?

528