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 for datainputstream?
How do you remove duplicates from an array in java?
how many types of Inheritance?
What advantage do java's layout managers provide over traditional windowing systems?
Why java is used everywhere?
How objects are stored in java?
Which package is always imported by default?
which class to use when concatenating strings in a loop.
What is difference between equals and hashcode method?
Explain importance of finally block in java?
How many JVMs can run on a single machine and what is the Just-In-Time(JIT) compiler?
when there is a need of jvm then how we can say that java is a platform independent language?