Answers for "boxing and unboxing in .ne"

2

boxing and unboxing in java

Autoboxing is the automatic conversion that the Java compiler makes between the primitive types and their corresponding object wrapper classes. For example, converting an int to an Integer, a double to a Double, and so on. If the conversion goes the other way, this is called unboxing.
Posted by: Guest on March-12-2021
0

boxing and unboxing in c#

class BoxingUnboxing
{  
    static void Main()  
    {  
        int myVal = 1;  
        object obj = myVal; // Boxing  
        int newVal = (int)obj; // Unboxing  
    }  
}
Posted by: Guest on May-17-2021

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language