What is casting?

Answers were Sorted based on User's Feedback



What is casting?..

Answer / 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

What is casting?..

Answer / sarojlaxmi

Casting is the process of converting one primitive data
type to another primitive datatype that is called casting.

Is This Answer Correct ?    1 Yes 0 No

What is casting?..

Answer / ravikiran(aptech mumbai)

casting is the process that allows lowerdatatype to hold the
data of higher data type

Is This Answer Correct ?    1 Yes 0 No

What is casting?..

Answer / sandeep sagala

casting is the process that allows lower data type to hold the
data of higher data type and also the higher data type to
hold the lower data type only by using reference

Is This Answer Correct ?    0 Yes 0 No

What is casting?..

Answer / sandeep

casting is technique by which we can solve widening problems
casting is two type
1. implicit type casting
2. explicit type casting

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

What is a boolean in java?

0 Answers  


What is Session and cookies?Explain in detail with an example?

4 Answers   Accenture, CTS,


How hashmap works in java?

0 Answers  


How do you write a good declaration?

0 Answers  


where singleton classes are used in j2ee web application.can we use it for connection pooling.

1 Answers  


What are the main uses of the super keyword?

0 Answers  


Give the difference between the println method and sqrt method?

0 Answers  


Accenture NJ mostly ask question on Collection like 1)How to sort Objcts and how treeset sort them 2)Explain mechanism of Hashcode finding in Java 3)Name some of the Sorted collection.

2 Answers   Accenture,


What are scriptlets?

0 Answers  


How do you make a thread in java?

0 Answers  


Name the methods in mouse listeners ?

4 Answers  


what is the difference between pagecontext and servletcontext?

5 Answers   JBA Infotech, TCS,


Categories