Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

instanceOf vs Class.forName("...").isInstance(obj)

807598Nov 3 2006 — edited Nov 3 2006
Can anyone please tell me what's the difference between

instanceOf Operator and Class.forName("...").isInstance(obj) metod?

Basically I want to know which is more efficient?

Thanks
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 1 2006
Added on Nov 3 2006
2 comments
1,037 views