What is the purpose of the instanceof operator?

Question:What is the purpose of the instanceof operator?

1.Multiply instances

2.Compare two object references

3.Check if an object is an instance of a specific class or interface

4.To create a new instance of a class


Search
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!