logo

Crowdly

Browser

Add to Chrome

Boxing and unboxing is used for data type conversions. Which of the followi...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

Boxing and unboxing is used for data type conversions.

Which of the following statements are cases of boxing or unboxing?

a) class A { }

class B extends A {}

A a = new B();

b) Integer i = 3;

c) Object o = 42;

int x = (int) o;

        d) int a = 12; int b = a;
More questions like this

Want instant access to all verified answers on moodle.jku.at?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!

Browser

Add to Chrome