The process of converting a primitive data type into an object is known as ________.

  • Boxing
  • Casting
  • Parsing
  • Wrapping
The process of converting a primitive data type into an object is known as "boxing." Boxing involves creating an object (e.g., Integer, Double) from a primitive type (e.g., int, double). This is often required when using primitive types in contexts that expect objects, such as collections and generics.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *