lundi 1 août 2016

How does assigning primitives to Object works? [duplicate]

This question already has an answer here:

Lets say I got those two lines:

Object obj;
obj = false;

Will obj casted into a Boolean (the wrapped class of boolean)?

Aucun commentaire:

Enregistrer un commentaire