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 |
What is an empty list in java?
What is the difference between a choice and a list?
Superclass of exception
any other way to print the text without using System.out.println() in java?
What do you mean by byte code?
Can we serialize singleton class?
What is an Applet ?
How many types of methods are there in java?
How to optimize the javac output?
What is the size of arraylist in java?
How hashmap increases its size in java?
Who developed java?