Forums Java Help What is casting

This topic contains 1 reply, has 2 voices, and was last updated by  Aakanksha 7 years, 4 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #15278

    ahprofessional
    Participant

    What is casting?

    #15281

    Aakanksha
    Participant

    There are two types of casting, casting between primitive numeric types and casting between object references. Casting between numeric types is used to convert larger values, such as double values, to smaller values, such as byte values. Casting between object references is used to refer to an object by a compatible class, interface, or array type reference.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.