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 method Overloading in the perspective of OOPS?
Can a class extend abstract class or interface? why
Can we write class inside a class in java?
Is array serializable java?
Can we execute java program without main method?
What is the difference between && and & in java?
y cant i declare method like public final static show()
What is string and its types?
What is pass by value?
What are three types of loops in java?
What is anti pattern in cyber security?
What happens if we override only equals?