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 advantages of exception handling?
What happens if we override only equals?
Hi all, I am dng a mini project on FileSplitter application which splits the GBs of logfile into Smaller chunks(mbs) depending on the split size." How to handle GBs file? I am getting OutOfMemoryException, when I input such GB sized file. Thx
What is a singleton factory?
What is the purpose of the finally clause of a try-catch-finally statement in java programming?
Why is static used?
I am unable to find or learn about print command. I have a graphical program in core java in applet but i want to give print command but i have coding for that so if anyone know about this plz mail me on avdhesh_chauhan007@yahoo.co.in
What is defined as false sharing in the context of multithreading?
What is meant by singleton class?
What is difference between synchronize and concurrent collection in java?
How do you square a number in java?
What is the use of arrays tostring () in java?
Explain try and catch keywords in java?
What do you mean Abstraction in java?
What is the java virtual machine?