Is there a typeof in Java?

Java does not have typeof operator but there’s the instanceof operator to check the types. Can we do any better ? Plus instanceof does not support primitive types .

Sizin İçin Seçtik  How do you use equals method in Java for objects?

Leave a Reply

Your email address will not be published. Required fields are marked *