Which method is used to find that the object is exited or
not?
Answer Posted / 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 |
Post New Answer View All Answers
What is a container in a gui?
What is the difference between iterator and list iterator?
What is methods and methodology?
Variables used in a switch statement can be used with which datatypes?
Why do we need singleton?
What is java util hashmap?
What is the biggest integer?
What is meant by attribute?
What is the difference between inheritance and encapsulation?
What is the benefit of using enum to declare a constant?
Can you start a thread twice in Java?
What is lambda in java?
What is the synonym of framework?
What is singleton class in ruby?
Why can we not override static method?