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

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

838


How do you use parseint in java?

712


What are the differences between the constructors and methods?

812


What does n mean in java?

729


What package is math in java?

742


What is meant by call by reference?

742


Will the compiler creates a default constructor if I have a parameterized constructor in the class?

808


Why is java so important?

869


What is OOP's Terms with explanation?

863


What are methods in java?

741


What if I write static public void instead of public static void in java?

817


Can we extend singleton class in java?

746


Which keyword specify that a variable is effectively final ?

771


What are synchronized methods and synchronized statements in java programming?

795


Which object oriented concept is achieved by using overloading and overriding?

799