What is wrong

Report a typo

What is the result of the following code execution:

Box<String> box = new Box<>();
box.set(10L);

If Box is a generic class:

class Box<T> {
    T value;

    void set(T value) {
        this.value = value;
    }
}
Select one option from the list
___

Create a free account to access the full topic