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

Where is core java used?

0 Answers  


how to convert Java project into Maven ?

0 Answers   Infosys,


what is instanceof operator used in java?

0 Answers  


Why string is popular hashmap key in java?

1 Answers  


Explain the use of shift operator in java. Can you give some examples?

0 Answers  






Can I uninstall java?

0 Answers  


What is a static class in java?

0 Answers  


Name the types of mouse event listeners ?

2 Answers  


What is the exact difference in between Unicast and Multicast object? Where will it be used?

0 Answers  


what is use of functional interface in java 8?

0 Answers  


What is array class in java?

0 Answers  


What is merge sort in java?

0 Answers  


Categories