What is casting?

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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are static blocks and static initalizers in java ?

578


What is unicode used for?

564


What is type inference in java8?

571


What is the difference between instanceof and isinstance?

551


What is string builder in java?

550






What is the hashcode () and equals () used for?

525


How do you generate random numbers in java?

504


Write a regular expression to validate a password. A password must start with an alphabet and followed by alphanumeric characters; its length must be in between 8 to 20.

583


I want my class to be developed in such a way that no other class (even derived class) can create its objects. Define how can I do so?

685


What is a instance variable in java?

540


Can a class be a super class and a sub-class at the same time? Give example.

786


What happens when you invoke a thread’s interrupt method while it is sleeping or waiting?

561


How does arraylist work in java?

516


Explain the difference between comparator and comparable in java?

475


What is meant by 'Class access modifiers'?

547