Computer Science, asked by Anonymous, 9 months ago

In java what is casting?

Answers

Answered by anuradhasingh1185
1

In Java you cannot cast any variable to any random type.

Explanation

Well, all casting really means is taking an Object of one particular type and “turning it into” another Object type. This process is called casting a variable. ... But, as with other languages, in Java you cannot cast any variable to any random type.

Answered by sanameer
2

Answer:

hope it will help you

Explanation:

please give me more points than 5

Attachments:
Similar questions
Math, 9 months ago