Forums Java Help What is casting

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.