Pre Exam Test Practice (SSC | Banking | IAS | GATE | State Level | CLAT | Railways | Insurance | Teaching Exams | NDA | Defence | IES |State Exam )

Organizational Research By

Surprising Reserch Topic

What is the use if instanceof keyword? and How do refer to a current instance of object?

"instanceof" keyword is used to check what is the type of object. 
we can refer the current instance of object using "this" keyword. For instance if we have class which has color property we can refer the current object instance inside any of the method using "this.color".

asked Sep 13, 2013 in oops by rajesh
edited Sep 12, 2013
0 votes

Related Hot Questions

Government Jobs Opening