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 return type in java?
explain the life cycle of thread?
10 Answers CTS, NIIT, TCS,
what is the difference between HashMap And HashTable?
What are thread groups?
Difference between Reader/Writer and InputStream/Output Stream?
9 Answers Adobe, Kirusa, Verizon,
how can u create the object with out new operator
Can we create object of static class?
What is the difference between Checked and Unchecked exception? Give some examples
Can we overload final method in java?
Sample code to retrieve objects from HashMap in sorted ascending order?
Why string is a class?
How do you define a variable?