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 1 is not a prime number?

574


What's the base class of all exception classes?

570


Why can we not override static method?

603


Write a function for palindrome and factorial and explain?

669


Differentiate between class and structure.

639






What does a method signature consist of?

521


Can we make main() thread as daemon?

589


What do you understand by abstract classes?

614


What is a values collection view ?

689


What is the purpose of tostring() method in java?

566


What is illegal identifier in java?

548


Why is a singleton bad?

570


Explain, java is compatible with all servers but not all browsers?

619


What is a marker interface?

582


Is an object null?

568