Which method is used to find that the object is exited or
not?

Answers were Sorted based on User's Feedback



Which method is used to find that the object is exited or not?..

Answer / ashokmail

we can check the null status of the object for it is
exits or not.

For Example
class java{
public java(){
}
}

class javause{
private java j;
public javause(){
if ( j != null)
j = new java();
}
public static void main(String args[]){
new javause();
}
}

Is This Answer Correct ?    6 Yes 4 No

Which method is used to find that the object is exited or not?..

Answer / kureshi salman rafik

equals() method is used to find that the object is exited
or
not.

Is This Answer Correct ?    2 Yes 1 No

Post New Answer

More Core Java Interview Questions

what is for datainputstream?

1 Answers  


How do you remove duplicates from an array in java?

0 Answers  


how many types of Inheritance?

0 Answers   Impetus,


What advantage do java's layout managers provide over traditional windowing systems?

0 Answers  


Why java is used everywhere?

0 Answers  






How objects are stored in java?

0 Answers  


Which package is always imported by default?

0 Answers  


which class to use when concatenating strings in a loop.

3 Answers   IBM,


What is difference between equals and hashcode method?

0 Answers  


Explain importance of finally block in java?

0 Answers  


How many JVMs can run on a single machine and what is the Just-In-Time(JIT) compiler?

0 Answers   Global Logic,


when there is a need of jvm then how we can say that java is a platform independent language?

3 Answers  


Categories