3 ms·new can be useful. I believe instanceof only works with objects created with new.by MatthewPhillips 15y agonew can be useful. I believe instanceof only works with objects created with new.