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 are the three parts of a lambda expression?
Why is java called the platform independent programming language?
What are the features of junit?
What are measurable parameters?
What is collection class in java?
Are true and false keywords?
What is integer valueof?
Explain 5 io best practices?
Explain differences between collection api and stream api?
Explain exception chaining in java?
How do you compare two objects?
Is null false in java?
What is method overloading and method overriding?
which class is the wait() method defined in? : Java thread
What is protected access modifier?