Which method is used to find that the object is exited or
not?
Answers were Sorted based on User's Feedback
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 |
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 |
Where is core java used?
how to convert Java project into Maven ?
what is instanceof operator used in java?
Why string is popular hashmap key in java?
Explain the use of shift operator in java. Can you give some examples?
Can I uninstall java?
What is a static class in java?
Name the types of mouse event listeners ?
What is the exact difference in between Unicast and Multicast object? Where will it be used?
what is use of functional interface in java 8?
What is array class in java?
What is merge sort in java?