Java

  Home  Java Programing  Java


“Learn Basic Java programming with Interview Questions and Answers and examples.”



81 Java Questions And Answers

60⟩ What is casting in Java Programming?

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.

 126 views