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

What is the primitive type short?

552


What is the difference between keyword and identifier?

502


What is an object’s lock and which object’s have locks?

491


What is boolean in java?

493


Which package has light weight components in java programming?

642






How to create a base64 decoder in java8?

531


What are predicates in java 8?

507


Why string objects are immutable in java?

540


Why put method is used?

501


what is synchronization? : Java thread

535


describe synchronization in respect to multithreading? : Java thread

476


What is an infinite loop? How infinite loop is declared?

544


What happens if a try-catch-finally statement does not have a catch clause to handle an exception that is thrown within the body of the try statement?

635


Can we define package statement after import statement in java?

531


How is java hashmap implemented?

529