Examlex

Solved

Consider the Following Code Snippet

question 57

Multiple Choice

Consider the following code snippet:
public class Box<E>
{
private E data;
public Box() { ...}
public void insert(E value) { ...}
public E getData() { ...}
}
What will result from executing the following code?
Box<Boolean> box = new Box<>() ;
Box b = (Box) box.getData() ;


Definitions:

Related Questions