What is casting?

Answer Posted / niranjanravi

casting is used to convert the value of one data type to
another.We have 2 different types of castings.
1.Casting between primitive numeric data types
2.Casting between object references.

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why generics are used in java?

527


What are the types of methods in java?

555


Is alive and join method in java?

511


Why is flag used in java?

520


What is arraylist e?

539






What is meant by string is immutable?

497


What is the base class of all classes?

544


What is finally block?

547


What is the difference between quicksort & mergesort? When should they be used? What is their running time?

629


What is java and why do we need it? Explain

558


What is java ceil?

548


How use .contains in java?

600


What is an i/o filter?

548


What is nullpointerexception in java?

506


Which sorting is best in java?

508